I've been having problems with compiling my first Android game made with CTF 2.5 on Windows 8.1.
I have the developer version and both the HTML5 and Android exporters. The HTML5 exporter works fine, and the Android exporter works fine with a blank application, but not with my game that I want to publish!
I have searched thoroughly through this forum for an answer, and have tried every solution offered, such as removing certain objects, disabling antivirus during export, and ensuring that the JDK and Android SDK were properly installed.
I have tried with the latest JDK (8) and Android SDK (24), as well as the default Android build version (14) and an older JDK (6). Blank exports work fine with all configurations, so I know that I have them installed correctly, but the failure is always in the compile stage of my game's export.
The Error Log goes as follows:
QuoteDisplay MoreBuildfile: C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\build.xml
-set-mode-check:
-set-debug-files:
-check-env:
[checkenv] Android SDK Tools Revision 24.1.2
[checkenv] Installed at C:\Android\sdk-setup:
[echo] Project Name: RuntimeAndroid
[gettype] Project Type: Application-set-debug-mode:
-debug-obfuscation-check:
-pre-build:
-build-setup:
[getbuildtools] Using latest Build Tools: 21.1.2
[echo] Resolving Build Target for RuntimeAndroid...
[gettarget] Project Target: Android 4.4W.2
[gettarget] API level: 20
[echo] ----------
[echo] Creating output directories if needed...
[mkdir] Created dir: C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\bin
[mkdir] Created dir: C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\bin\res
[mkdir] Created dir: C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\bin\rsObj
[mkdir] Created dir: C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\bin\rsLibs
[mkdir] Created dir: C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\gen
[mkdir] Created dir: C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\bin\classes
[mkdir] Created dir: C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\bin\dexedLibs
[echo] ----------
[echo] Resolving Dependencies for RuntimeAndroid...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
[echo] ----------
[echo] Building Libraries with 'debug'...
[subant] No sub-builds to iterate on-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...
[echo] ----------
[echo] Handling Resources...
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.-pre-compile:
-compile:
[javac] Compiling 411 source files to C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\bin\classes
[javac] C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\src\com\pirat\8nights\Main.java:19: ';' expected
[javac] package com.pirat.8nights;
[javac] ^
[javac] C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\gen\com\pirat\8nights\BuildConfig.java:2: ';' expected
[javac] package com.pirat.8nights;
[javac] ^
[javac] C:\Users\Peter\AppData\Local\Temp\AndCE8C.tmp\gen\com\pirat\8nights\R.java:8: ';' expected
[javac] package com.pirat.8nights;
[javac] ^
[javac] 3 errorsBUILD FAILED
C:\Android\sdk\tools\ant\build.xml:720: The following error occurred while executing this line:
C:\Android\sdk\tools\ant\build.xml:734: Compile failed; see the compiler error output for details.Total time: 4 seconds
I also see how the java [javac] part of the export contains errors where ';'s or line breaks are expected, but I believe that's part of the exporter process so is out of my hands. Thank you for reading through this, I hope you can help!
-Peda