Any one!!!?? Ive searched for days for the answer but i cannot figure it out. Ive downloaded alllll referenced files and ive referenced them inside enviroment variables. I have sdk rev 21, and newest jdk as well as jdk 7. Ive tried Sdk rev 21 and 22. And jdk 32 and 64 bit versions. Ive referenced the, in prefrences inside unity. Ive done it all. This is the error.
Error building Player: CommandInvokationFailure: Failed to build apk. See the Console for details.
C:/Program Files/Java/jdk1.7.0_79\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir=“C:/Program Files (x86)/Android/android-sdk-windows\tools” -Dfile.encoding=UTF8 -jar “C:/Program Files/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar” -
stderr[
Error: Not a file ’
‘C:\Users\shawnrevels\Documents\Vision’
]
stdout[
This worked for me as well - downgrading from JDK9 to JDK8. Unity version 5.6. Jesus christ the hoops you have to jump through these days to get a simple Android build working.
I didn’t have a keystore, I didn’t move the zipalign.exe file. All I did was downgrading JDK 9.0 to JDK 8.0 and everything built properly. Thank you soydev!