- Home /
The question is answered, right answer was accepted
Build Error for android
I dont know how to fix this but it showed up after I integrated google play services into my project. The error is:
Error building Player: Win32Exception: ApplicationName='C:\Program Files (x86)\Java\jre7\bin\javac.exe', CommandLine='-bootclasspath "C:/Program Files (x86)/Android SDK/adt-bundle-windows-x86_64-20140702/sdk/platforms/android-21\android.jar" -d "C:\Users\Shay\Documents\Flappy Rotation\Temp\StagingArea\bin\classes" -source 1.6 -target 1.6 -encoding UTF-8 "com\google\example\games\basegameutils\R.java" "com\UltimateStudios\ChickenWings\R.java"', CurrentDirectory='C:\Users\Shay\Documents\Flappy Rotation\Temp\StagingArea\gen'
Any suggestions would be very helpful.
as i can remember, this is solved by setting JAVA_HO$$anonymous$$E path in environment variables, you may check this. I'm not sure though.
@koray1396 I already had that set, but I think there is a new java update so I will try that and see what happens.
Answer by Yury-Habets · Nov 19, 2014 at 10:05 AM
You will need JDK, not JRE: http://www.oracle.com/technetwork/java/javase/downloads/index.html Please install JDK, update your JAVA_HOME and PATH variables accordingly.
Follow this Question
Related Questions
Failed to recompile android resource files. 1 Answer
Unity crashing my Macbook Air during android builds 0 Answers
Unity 2020.2.1 Gradle BUild Error 1 Answer
Silent Android build failure 7 Answers