- Home /
Android build error
Has anyone been able to fix the problem, after successfully installing and locating the android sdk and jdk, right at the end of a build I get the ding of depression and an error.
Error building Player: Win32Exception: ApplicationName='E:/Downloads/android-sdk-windows\tools\zipalign.exe', CommandLine='4 "E:\Software\Git\Game2\Temp/StagingArea/Package_unaligned.apk" "E:\Software\Git\Game2\Temp/StagingArea/Package.apk"', CurrentDirectory='Temp/StagingArea'
I am using Unity 4.5 and Android SDK r21 (although I had the same error on r22).
I have been trying to fix this for several hours now. I have tried different revisions as some forum answers claim that's the problem. I have basically followed every unique fix I can find online and I just seem to be getting nowhere.
Any help is appreciated.
Answer by jkramar · Jul 03, 2014 at 02:43 PM
Depending on your version of the SDK, zipalign.exe may have moved. Make sure it is both in the "build" and "build-tools" SDK sub-folders.
Answer by liortal · Jul 05, 2014 at 12:29 AM
See this answer: http://answers.unity3d.com/questions/739712/how-to-build-a-file-for-android-use.html
Either use Android SDK 22.x or copy Zipalign.exe to Android SDK/Tools
Unity said this will be fixed in a patch soon.
Answer by SelfishGenome · Jul 03, 2014 at 02:36 PM
You're a legend. I followed one saying to copy the entire folder, but not just the zipalign.exe. That way worked straight away. Thank you.I figure I cannot up vote your answer as an untrustworthy noob...
Your answer
Follow this Question
Related Questions
Silent Android build failure 7 Answers
Android build error: unrecognized pixel format 264 0 Answers
il2cpp android build error unity 2019.1.6f1 6 Answers
Android Build Fail, CommandInvokationFailure 1 Answer
Unity Android IL2CPP Build Error 1 Answer