Hi, first of all I have been able to compile other apps to Android so I believe I have everything set up correctly.
I have recently ported my game Hack, Slash, Loot to monkey x and it compiles and works fine in glfw, Flash, html5, and iOS. But when I've tried to compile it for Android I'm getting the following error.
-compile:
[javac] Compiling 3 source files to /Users/dave/Dropbox/hsl_mobile/hsl_mobile.build/android/bin/classes
[javac] /Users/dave/Dropbox/hsl_mobile/hsl_mobile.build/android/src/com/monkeycoder/monkeygame/MonkeyGame.java:30281: error: code too large
[javac] public static c_Theme g_InitMask(){
[javac] ^
[javac] Note: /Users/dave/Dropbox/hsl_mobile/hsl_mobile.build/android/src/com/monkeycoder/monkeygame/MonkeyGame.java uses unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 1 error
BUILD FAILED
/Users/dave/Documents/android-sdk-macosx/tools/ant/build.xml:713: The following error occurred while executing this line:
/Users/dave/Documents/android-sdk-macosx/tools/ant/build.xml:727: Compile failed; see the compiler error output for details.
Total time: 3 seconds
TRANS FAILED: Android build failed.
Done.
Can anybody help decipher what is wrong as I'm not much of an Android bod myself?
|