Getting Android build errors.

I’m trying to build my APK and getting this error. Error building Player: Win32Exception: ApplicationName=‘C:\Program Files (x86)\Java\jre1.8.0_25\bin\javac.exe’, CommandLine=‘-bootclasspath “C:/Development/adt-bundle-windows-x86-20140702/sdk/platforms/android-21\android.jar” -d “C:\Users\GameDev\Desktop\gamecopy\222BackUp\Temp\StagingArea\bin\classes” -source 1.6 -target 1.6 -encoding UTF-8 “com\everyplay\Everyplay\R.java” “com\hiddentreasuregames\Skrybox\R.java”’, CurrentDirectory=‘C:\Users\GameDev\Desktop\gamecopy\222BackUp\Temp\StagingArea\gen’

Any ideas? Thanks!

Maybe you should copy zipalign

I’ve encountered a similar problem before, and solved by following this: java - Unity Android Build Error WIN32 Exception ZipAlign - Stack Overflow

Thanks. That was the first thing I tried, but that didn’t fix it. I figured it out. I was missing the file javac.exe. I downloaded the JDK and that fixed it.