processing / processing-android

Processing mode and core library to create Android apps with Processing
http://android.processing.org
783 stars 293 forks source link

Clickteam Build Fail #420

Open Jamer125 opened 6 years ago

Jamer125 commented 6 years ago

Hello I have been working on a card game for android. I have been able to build an apk of this project before but now I'm getting errors. I can build a apk from a new project but I would love to not start over again. My error log is this: Unable to locate tools.jar. Expected to find it in D:\Program Files (x86)\Java\jre1.8.0_151\lib\tools.jar Buildfile: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\build.xml

-set-mode-check:

-set-release-mode:

-release-obfuscation-check: [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env: [checkenv] Android SDK Tools Revision 25.2.3 [checkenv] Installed at D:\Users\jmerce05\AppData\Local\Android\sdk

-setup: [echo] Project Name: RuntimeAndroid [gettype] Project Type: Application

-build-setup: [getbuildtools] Using latest Build Tools: 25.0.1 [echo] Resolving Build Target for RuntimeAndroid... [gettarget] Project Target: Android 7.1.1 [gettarget] API level: 25 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\bin [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\bin\res [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\bin\rsObj [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\bin\rsLibs [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\gen [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\bin\classes [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\bin\dexedLibs [echo] ---------- [echo] Resolving Dependencies for RuntimeAndroid... [dependency] Library dependencies: [dependency] [dependency] ------------------ [dependency] Ordered libraries: [dependency] [dependency] ------------------ [echo] ---------- [echo] Building Libraries with 'release'...

nodeps:

-set-mode-check:

-set-release-mode:

-release-obfuscation-check: [echo] proguard.config is ${proguard.config}

-pre-build:

-check-env: [checkenv] Android SDK Tools Revision 25.2.3 [checkenv] Installed at D:\Users\jmerce05\AppData\Local\Android\sdk

-setup: [echo] Project Name: facebook [gettype] Project Type: Android Library

-build-setup: [getbuildtools] Using latest Build Tools: 25.0.1 [echo] Resolving Build Target for facebook... [gettarget] Project Target: Android 7.1.1 [gettarget] API level: 25 [echo] ---------- [echo] Creating output directories if needed... [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\google-play-services_lib\bin [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\google-play-services_lib\bin\res [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\google-play-services_lib\bin\rsObj [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\google-play-services_lib\bin\rsLibs [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\google-play-services_lib\gen [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\google-play-services_lib\bin\classes [mkdir] Created dir: C:\Users\jmerce05\AppData\Local\Temp\And803E.tmp\google-play-services_lib\bin\dexedLibs [echo] ---------- [echo] Resolving Dependencies for facebook... [dependency] Library dependencies: [dependency] No Libraries [dependency] [dependency] ------------------

-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:

BUILD FAILED D:\Users\jmerce05\AppData\Local\Android\sdk\tools\ant\build.xml:597: The following error occurred while executing this line: (This is a new error before I was just getting the other two but I tried fixing them and wounded up with 3 errors now, so I'm asking for help so I don't blow it up even more.) D:\Users\jmerce05\AppData\Local\Android\sdk\tools\ant\build.xml:716: The following error occurred while executing this line: D:\Users\jmerce05\AppData\Local\Android\sdk\tools\ant\build.xml:730: Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK. It is currently set to "D:\Program Files (x86)\Java\jre1.8.0_151"

Total time: 1 second

codeanticode commented 6 years ago

@Jamer125 Hi there, do you get this error when running your sketch from the PDE, or after exporting it as an Android (Gradle) project and building from the command line?