Every time I try to build my game for android, I get this error:
Error building Player: Win32Exception:
ApplicationName='.../.../.../.../adt-bundle-mac-x86_64-20140624/sdk/tools/zipalign',
CommandLine='4"/.../.../.../.../Asteroid2(2)/Temp/StagingArea/Package.apk'".
CurrentDirectory='Temp/StagingArea'
Any ideas? I'm stumped. I've redownloaded the SDK and that didn't help.
build-tools
and choose a version (e.g.build-tools\19.1.0
)zipalign.exe
build-tools
tools
zipalign.exe
You need to copy the zipalign tool from sdk/build-tools/android-{version}/ to sdk/tools/
In Unity go to Edit>Preferences>External Tools> in "Android SDK Location" select the folder of android-sdk (C:\Program Files (x86)\Android\android-sdk) in my case.
You need to copy zipalign as suggested at accepted answer; but if there are no zipalign file in related folder first you should go tools, run android and then install build-tools
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With