- Home /
Error building android player
Error building Player: Win32Exception: ApplicationName='D:\Program Files (x86)\Java\jre1.8.0_31\bin\javac.exe', CommandLine='-bootclasspath "C:/Users/Kyran/Desktop/adt-bundle-windows-x86_64-20140702 (1)/adt-bundle-windows-x86_64-20140702/sdk/platforms/android-21\android.jar" -d "C:\Users\Kyran\Documents\Dodger\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "com\google\android\gms\R.java" "com\Wysca\Dodger\R.java"', CurrentDirectory='C:\Users\Kyran\Documents\Dodger\Temp
I have seen a lot of people having the same issues, however moving the zipalign.exe from build-tools to tools won't work with me.
Answer by trul · Feb 16, 2015 at 10:12 AM
I've had similar problem. The solution was to check the Path (environment variable), I had unwanted space there. Or Try this solution: http://forum.unity3d.com/threads/unityads-dont-compile.285544/#post-1907280
Answer by Yury-Habets · Feb 17, 2015 at 10:36 AM
You are using JRE, when Unity requires JDK installed to build for Android. Please install the latest JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html You may also want to configure JAVA_HOME environment variable to point to your JDK installation, just as in the link mentioned by @trul.
In Unity 5.0, we added pre-build detection for JDK missing, so the user gets a friendly message.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
erorr in building scene ????? 0 Answers
Android app is not building in Unity, Error “Gradle initialization failed.” 1 Answer
Android build problem. 0 Answers
Java error when building 1 Answer