Android Compiling Bug
Monkey Targets Forums/Android/Android Compiling Bug
| ||
I am trying to compile to android but I keep getting an error. It compiles fine to glfw. I am also using fantomengine and ioplus. Whenever I don't use them is compiles fine, but unfortunately they're crucial to the game I'm making. This is the Console Log: "C:/Program Files (x86)/Monkey/bin/trans_winnt" -target=android -config=Debug -run "G:/Game/GAME.monkey" TRANS monkey compiler V1.37 Parsing... Semanting... Translating... Building... * daemon not running. starting it now on port 5037 * * daemon started successfully * Buildfile: G:\Game\GAME.build\android\build.xml -check-env: [checkenv] Android SDK Tools Revision 20.0.1 [checkenv] Installed at E:\APPLICATIONS\Android\android-sdk -setup: [echo] Project Name: MonkeyGame [gettype] Project Type: Application -pre-clean: clean: [delete] Deleting directory G:\Game\GAME.build\android\bin [delete] Deleting directory G:\Game\GAME.build\android\gen [getlibpath] Library dependencies: [getlibpath] No Libraries [subant] No sub-builds to iterate on BUILD SUCCESSFUL Total time: 0 seconds Buildfile: G:\Game\GAME.build\android\build.xml -set-mode-check: -set-debug-files: -check-env: [checkenv] Android SDK Tools Revision 20.0.1 [checkenv] Installed at E:\APPLICATIONS\Android\android-sdk -setup: [echo] Project Name: MonkeyGame [gettype] Project Type: Application -set-debug-mode: -debug-obfuscation-check: -build-setup: [echo] Resolving Build Target for MonkeyGame... [gettarget] Project Target: Android 3.2 [gettarget] API level: 13 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: G:\Game\GAME.build\android\bin [mkdir] Created dir: G:\Game\GAME.build\android\bin\res [mkdir] Created dir: G:\Game\GAME.build\android\gen [mkdir] Created dir: G:\Game\GAME.build\android\bin\classes [echo] ---------- [echo] Resolving Dependencies for MonkeyGame... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------ [dependency] API<=15: Adding annotations.jar to the classpath. [echo] ---------- [echo] Building Libraries with 'debug'... [subant] No sub-builds to iterate on -pre-build: -code-gen: [mergemanifest] Merging AndroidManifest files into one. [mergemanifest] Manifest merger disabled. Using project manifest only. [echo] Handling aidl files... [aidl] No AIDL files to compile. [echo] ---------- [echo] Handling RenderScript files... [renderscript] No RenderScript files to compile. [echo] ---------- [echo] Handling Resources... [aapt] Generating resource IDs... [echo] ---------- [echo] Handling BuildConfig class... [buildconfig] Generating BuildConfig class. -pre-compile: -compile: [javac] Warning: com\monkey\BuildConfig.java modified in the future. [javac] Compiling 3 source files to G:\Game\GAME.build\android\bin\classes [javac] G:\Game\GAME.build\android\src\com\monkey\MonkeyGame.java:2158: illegal start of type [javac] }import android.os.Build; [javac] ^ [javac] G:\Game\GAME.build\android\src\com\monkey\MonkeyGame.java:2158: ';' expected [javac] }import android.os.Build; [javac] ^ [javac] G:\Game\GAME.build\android\src\com\monkey\MonkeyGame.java:2158: illegal start of type [javac] }import android.os.Build; [javac] ^ [javac] G:\Game\GAME.build\android\src\com\monkey\MonkeyGame.java:2158: ';' expected [javac] }import android.os.Build; [javac] ^ [javac] G:\Game\GAME.build\android\src\com\monkey\MonkeyGame.java:2158: <identifier> expected [javac] }import android.os.Build; [javac] ^ [javac] G:\Game\GAME.build\android\src\com\monkey\MonkeyGame.java:5666: reached end of file while parsing [javac] } [javac] ^ [javac] 6 errors BUILD FAILED E:\APPLICATIONS\Android\android-sdk\tools\ant\build.xml:679: The following error occurred while executing this line: E:\APPLICATIONS\Android\android-sdk\tools\ant\build.xml:692: Compile failed; see the compiler error output for details. Total time: 2 seconds TRANS FAILED: Android build failed. Done. |
| ||
Hi, More info needed! Also, it sounds more likely to be a 3rd party module issue... |
| ||
When Monkey appends an external module it doesnt put in an extra (needed) cartridge return, so make sure your module has at least one extra :P @Mark, could you make Monkey add the needed CR within Monkey? |