Unable to compile to android

222 views
Skip to first unread message

Tembac

unread,
Jul 7, 2015, 9:12:49 PM7/7/15
to haxef...@googlegroups.com
Hello everyone,

I updated all haxelib today and I was trying to compile a project I made last year. The following error appears:

-compile:
   
[javac] Compiling 6 source files to C:\Users\Agustin\Documents\Trabajos\Chimango\LineasMapuches\MapuchesSvn\export\android\bin\bin\classes
   
[javac] C:\Users\Agustin\Documents\Trabajos\Chimango\LineasMapuches\MapuchesSvn\export\android\bin\src\org\haxe\lime\GameActivity.java:94: cannot find symbol
   
[javac] symbol  : class Sound
   
[javac] location: class org.haxe.lime.GameActivity
   
[javac] private Sound _sound;
   
[javac]        ^
   
[javac] C:\Users\Agustin\Documents\Trabajos\Chimango\LineasMapuches\MapuchesSvn\export\android\bin\src\org\haxe\lime\GameActivity.java:111: cannot find symbol
   
[javac] symbol  : class Sound
   
[javac] location: class org.haxe.lime.GameActivity
   
[javac] _sound = new Sound (getApplication ());
   
[javac]             ^
   
[javac] Note: Some input files use or override a deprecated API.
   
[javac] Note: Recompile with -Xlint:deprecation for details.
   
[javac] 2 errors


BUILD FAILED
C
:\Development\Android SDK\tools\ant\build.xml:716: The following error occurred while executing this line:
C
:\Development\Android SDK\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.


Total time: 5 seconds
Build halted with errors.
Done(1)

What can be the problem?

CurlyBrace

unread,
Sep 8, 2015, 6:00:54 AM9/8/15
to haxef...@googlegroups.com
Bump. Have the same problem. Did you find a solution?

среда, 8 июля 2015 г., 4:12:49 UTC+3 пользователь Tembac написал:

Tembac

unread,
Sep 8, 2015, 2:07:05 PM9/8/15
to HaxeFlixel
Not yet for that project :(

SruloArt

unread,
Sep 8, 2015, 2:39:02 PM9/8/15
to HaxeFlixel
* How do you play a sound (via FlxG/new FlxSound/etc - how do you include these sounds in the project.xml (if you do)? do you give them an id?).
* Also, do you use an .ogg file format? did you verify the sound files work on Windows/Neko?
* And naturally: what's your lime/openfl/haxeflixel/jdk/haxe versions (haxelib list)?

Tembac

unread,
Sep 8, 2015, 2:59:18 PM9/8/15
to HaxeFlixel
This was working before. The project is Pewma, that is already published. I was trying to make a few changes.

  • I'm using this to play the music:
FlxG.sound.playMusic("Music", 1, false);

  • and to play a sound:

FlxG.sound.play("intro");

  • I have mp3 and ogg on the assets folder.

  • On project.xml i'm declaring the following:

<!--sounds-->
<assets path="assets/sounds" if="flash" >
<sound path="Explosion.mp3" id="Explosion" />
<sound path="Powerup.mp3" id="Chimango" />
<sound path="Jump_1.mp3" id="Jump_1" />
<sound path="Jump_2.mp3" id="Jump_2" />
<sound path="Jump_3.mp3" id="Jump_3" />
<sound path="Jump_4.mp3" id="Jump_4" />
<sound path="fall.mp3" id="fall" />
<sound path="Rebote_1.mp3" id="rebote1" />
<sound path="Rebote_2.mp3" id="rebote2" />
<sound path="Rebote_3.mp3" id="rebote3" />
<sound path="fuego_1.mp3" id="powerup1" />
<sound path="fuego_2.mp3" id="powerup2" />
<sound path="fuego_3.mp3" id="powerup3" />
<sound path="PEWMA_Intro.mp3" id="intro" />
<sound path="Rayo_1.mp3" id="rayo1" />
<sound path="Rayo_2.mp3" id="rayo2" />
<sound path="Rayo_3.mp3" id="rayo3" />
<sound path="Viento_1.mp3" id="viento1" />
<sound path="Viento_2.mp3" id="viento2" />
<sound path="Explota_Globo.mp3" id="explota_globo1" />
<sound path="Explota_Globo_2.mp3" id="explota_globo2" />
<sound path="Explota_Globo_3.mp3" id="explota_globo3" />
<sound path="Cannon_1.mp3" id="cannon1" />
<sound path="Cannon_2.mp3" id="cannon2" />
<sound path="Cannon_3.mp3" id="cannon3" />
<sound path="Cannon_4.mp3" id="cannon4" />
<sound path="Colision_DP.mp3" id="Colision_DispPajaro" />
<sound path="Powerup_Acheived.mp3" id="Powerup_Acheived" />
<sound path="Powerup_Used.mp3" id="Powerup_Used" />
<sound path="Loading_Cannon_1.mp3" id="loadCannon1" />
<sound path="Loading_Cannon_2.mp3" id="loadCannon2" />
<sound path="Loading_Cannon_3.mp3" id="loadCannon3" />
</assets>
<assets path="assets/sounds" unless="flash" >
<sound path="Explosion.ogg" id="Explosion" />
<sound path="Powerup.ogg" id="Chimango" />
<sound path="Jump_1.ogg" id="Jump_1" />
<sound path="Jump_2.ogg" id="Jump_2" />
<sound path="Jump_3.ogg" id="Jump_3" />
<sound path="Jump_4.ogg" id="Jump_4" />
<sound path="fall.ogg" id="fall" />
<sound path="Rebote_1.ogg" id="rebote1" />
<sound path="Rebote_2.ogg" id="rebote2" />
<sound path="Rebote_3.ogg" id="rebote3" />
<sound path="fuego_1.ogg" id="powerup1" />
<sound path="fuego_2.ogg" id="powerup2" />
<sound path="fuego_3.ogg" id="powerup3" />
<sound path="PEWMA_Intro.ogg" id="intro" />
<sound path="Rayo_1.ogg" id="rayo1" />
<sound path="Rayo_2.ogg" id="rayo2" />
<sound path="Rayo_3.ogg" id="rayo3" />
<sound path="Viento_1.ogg" id="viento1" />
<sound path="Viento_2.ogg" id="viento2" />
<sound path="Explota_Globo.ogg" id="explota_globo1" />
<sound path="Explota_Globo_2.ogg" id="explota_globo2" />
<sound path="Explota_Globo_3.ogg" id="explota_globo3" />
<sound path="Cannon_1.ogg" id="cannon1" />
<sound path="Cannon_2.ogg" id="cannon2" />
<sound path="Cannon_3.ogg" id="cannon3" />
<sound path="Cannon_4.ogg" id="cannon4" />
<sound path="Colision_DP.ogg" id="Colision_DispPajaro" />
<sound path="Powerup_Acheived.ogg" id="Powerup_Acheived" />
<sound path="Powerup_Used.ogg" id="Powerup_Used" />
<sound path="Loading_Cannon_1.ogg" id="loadCannon1" />
<sound path="Loading_Cannon_2.ogg" id="loadCannon2" />
<sound path="Loading_Cannon_3.ogg" id="loadCannon3" />
</assets>
<!--music-->
<assets path="assets/music" if="flash" >
<music path="indiecitos.mp3" id="Music" />
</assets>
<assets path="assets/music" unless="flash" >
<music path="indiecitos.ogg" id="Music" />
</assets>

  • The libs:

C:\Users\Agustin>haxelib list
actuate: 1.7.2 1.7.3 1.7.5 1.8.0 1.8.1 1.8.2 [1.8.6]
admob: git [dev:C:\HaxeToolkit\haxe\lib/admob/git]
asiads: git [dev:C:\HaxeToolkit\haxe\lib/asiads/git]
dragonbones: git [dev:C:\HaxeToolkit\haxe\lib/dragonbones/git]
firetongue: git [dev:C:\HaxeToolkit\haxe\lib/firetongue/git]
flixel-addons: 1.0.3 [1.1.0]
flixel-demos: 1.0.2 1.1.0 1.1.1 [1.1.2]
flixel-templates: 1.0.0 1.0.1 [1.0.2]
flixel-tools: 1.0.2 1.0.3 1.0.4 1.0.5 [1.1.0]
flixel-ui: 1.0.1 [1.0.2]
flixel: 3.2.2 3.3.0 3.3.1 3.3.10 [3.3.11] 3.3.3 3.3.4 3.3.5 3.3.6 3.3.8
haxelib_client: 3.1.0-rc.3 3.1.0-rc.4 [3.2.0-rc.3]
hxcpp: 3.0.2 3.1.21 3.1.22 3.1.30 3.1.37 3.1.39 3.1.48 3.1.68 [3.2.102]
hxlibc: [1.1.4]
hyprate: git [dev:C:\HaxeToolkit\haxe\lib/hyprate/git]
iap: 1.0.4 1.0.5 [1.0.6]
inthebox-macros: git [dev:C:\HaxeToolkit\haxe\lib/inthebox-macros/git]
lime-tools: 1.3.0 1.3.1 1.3.2 1.4.0 1.5.4 1.5.6 [1.5.7]
lime: 0.9.5 0.9.6 0.9.7 1.0.0 1.0.1 2.0.0 2.0.4 2.0.5 2.0.6 2.1.1 2.4.3 2.4.7 [2.5.2]
nape: 2.0.15 2.0.16 2.0.17 [2.0.19]
openfl-bitfive: git [dev:c:\haxetoolkit\haxe\lib/openfl-bitfive/git]
openfl-html5-dom: 1.2.1 [1.2.2]
openfl-html5: [1.0.5] 1.1.0-beta 1.1.1-beta 1.4.0-beta 1.4.1-beta 1.4.2-beta
openfl-native: 1.2.4 1.3.0 [1.4.0]
openfl-samples: 1.2.1 1.3.0 2.1.0 2.2.0 2.2.1 2.2.2 [3.1.0]
openfl: 1.2.3 1.3.0 1.4.0 2.0.0 2.0.1 2.1.6 2.2.1 2.2.3 2.2.4 2.2.6 2.2.7 3.0.8
3.1.1 [3.2.2]
spinehx: [0.2.0]
SpriterHaxeEngine: 1.1.0 1.3.1 [1.5.0]
swf: 1.4.1 1.4.2 1.5.2 1.7.0 1.7.3 1.7.5 1.7.6 1.7.7 1.8.7 1.8.9 [1.9.1]
task: [1.0.6]
tilelayer: [0.2.0]

Tembac

unread,
Sep 8, 2015, 3:00:12 PM9/8/15
to HaxeFlixel
It works on windows/Neko

SruloArt

unread,
Sep 8, 2015, 3:46:56 PM9/8/15
to HaxeFlixel
* You're doing everything just fine, I think it's some weirdness in the Lime's template...

SruloArt

unread,
Sep 9, 2015, 4:55:21 PM9/9/15
to HaxeFlixel
* You can try to revert this commit: https://github.com/openfl/lime/commit/81accad822ee07fe00619b005952eca0d9ffb092#commitcomment-13120688 manually and report back,
* or try to use an older Lime version than this commit (so 2.3.2 and below I think) and report back...

Tembac

unread,
Sep 14, 2015, 7:51:53 PM9/14/15
to HaxeFlixel
I downloaded 2.3.2 but now it fails with this problem:

-compile:
    [javac] Compiling 6 source files to C:\Users\Agustin\Documents\Trabajos\Chimango\LineasMapuches\MapuchesSvn\export\android\bin\bin\classes
    [javac] C:\Users\Agustin\Documents\Trabajos\Chimango\LineasMapuches\MapuchesSvn\export\android\bin\src\org\haxe\lime\GameActivity.java:94: cannot find symbol
    [javac] symbol  : class Sound
    [javac] location: class org.haxe.lime.GameActivity
    [javac] private Sound _sound;
    [javac]        ^
    [javac] C:\Users\Agustin\Documents\Trabajos\Chimango\LineasMapuches\MapuchesSvn\export\android\bin\src\org\haxe\lime\GameActivity.java:111: cannot find symbol
    [javac] symbol  : class Sound
    [javac] location: class org.haxe.lime.GameActivity
    [javac] _sound = new Sound (getApplication ());
    [javac]             ^
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 2 errors

BUILD FAILED
C:\Development\Android SDK\tools\ant\build.xml:716: The following error occurred while executing this line:
C:\Development\Android SDK\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.

Total time: 21 seconds
Build halted with errors.
Done(1)



SruloArt

unread,
Sep 15, 2015, 3:10:29 PM9/15/15
to HaxeFlixel
* Maybe an older version of Lime + using a suitable (older) version of OpenFL?
* If all things fail try asking in the OpenFL forum, they are a bit more knowledgeable about OpenFL's Android stuff than yourself truly :)

Tembac

unread,
Sep 16, 2015, 2:55:26 PM9/16/15
to HaxeFlixel
Thanks for the help Srulo. This is not urgent for me so I'll wait an update hoping this is fixed.

David-Lee Kulsch

unread,
Oct 17, 2015, 1:12:04 PM10/17/15
to HaxeFlixel
Any news on this issue?
I just opened a issue at https://github.com/openfl/lime/issues/610 if anyone knows a fix or workaround.

Greetings, David-Lee
Reply all
Reply to author
Forward
0 new messages