How to Debug Failed Compile for Android

Monkey Targets Forums/Android/How to Debug Failed Compile for Android

c.k.(Posted 2012) [#1]
OK, I have no idea where to start. I've got my android SDK installed, java SDK installed, and ANT. All set up properly in my config file (I'm pretty sure... Android shows as a target in Jungle).

The compile is failing. Here's the trailing output:


-compile:
    [javac] Compiling 3 source files to C:\Users\c.k.lester\Desktop\Tap Drummer\beta\tap_drummer.build\android\bin\classes
    [javac] C:\Users\c.k.lester\Desktop\Tap Drummer\beta\tap_drummer.build\android\src\com\monkey\MonkeyGame.java:2944: cannot find symbol
    [javac] symbol  : class GL11
    [javac] location: class com.monkey.diddy
    [javac] 		GL11 gl = MonkeyGame.app.graphics.gl;
    [javac] 		^
    [javac] C:\Users\c.k.lester\Desktop\Tap Drummer\beta\tap_drummer.build\android\src\com\monkey\MonkeyGame.java:2944: cannot find symbol
    [javac] symbol  : variable gl
    [javac] location: class com.monkey.gxtkGraphics
    [javac] 		GL11 gl = MonkeyGame.app.graphics.gl;
    [javac] 		                                 ^
    [javac] Note: C:\Users\c.k.lester\Desktop\Tap Drummer\beta\tap_drummer.build\android\src\com\monkey\MonkeyGame.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 2 errors
ERROR:
BUILD FAILED
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:651: The following error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:672: Compile failed; see the compiler error output for details.

Total time: 2 secondsERROR:
TRANS FAILED: Android build failed.
Abnormal program termination. Exit code: -1


Any help appreciated.


ziggy(Posted 2012) [#2]
Last time I checked, the Android SDK did not liked paths with spaces. Maybe if you move the whole thing to C:\somewhere_without_spaces\ it may make a difference

EDIT: Forget it, I've just read again your post, it seems like a genuine compilation error from the java compiler. Have you tried to make a "clean" compilation from Jungle?


c.k.(Posted 2012) [#3]
What does "make a clean compilation from Jungle" mean? Is that deleting the build folder?