Unity Android Build Error WIN32 Exception ZipAlign

Barney Chambers picture Barney Chambers · Jul 1, 2014 · Viewed 25.2k times · Source

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.

Answer

OMGtechy picture OMGtechy · Jul 24, 2014
  1. Find your copy of the Android SDK in explorer
  2. Go to build-tools and choose a version (e.g.build-tools\19.1.0)
  3. Copy zipalign.exe
  4. Come back out of build-tools
  5. Go into tools
  6. Paste zipalign.exe