Error on android game building, Win32Exception: ApplicationName='F:/Android SDK\tools\zipalign.exe', CommandLine='4

Hi at all, I’m trying to develop my first game(in 2D) and when I try to build the game for android, after I’ve selected the android SDK Unity give me an error, that for me it’s indecipherable.
Error:
Error building Player: Win32Exception: ApplicationName=‘F:/Android SDK ools\zipalign.exe’, CommandLine=‘4 “F:\Dani\Unity\CrazyCyclist\Temp/StagingArea/Package_unaligned.apk” “F:\Dani\Unity\CrazyCyclist\Temp/StagingArea/Package.apk”’, CurrentDirectory=‘Temp/StagingArea’

I’ve tryed to copy the apk in Temp/StagingArea/Package_unaligned.apk and I’ve installed it on my android phone and it works great but somewhere there must be a problem. Can you help me? :stuck_out_tongue:

Thank you in advance!
Soon

If you go into the root install of your android SDK and then go to the sdk/build-tools folder, you will find zipalign.exe, if you copy this from that folder to sdk/tools, it should work.

Give it a go and let me know how you get on

Here is a link to my question in which I was having the same problem:

This was a bug that was resolved in Unity 4.5.1 p4 - http://forum.unity3d.com/threads/unity-patch-releases.246198/

UPDATE

Latest Unity version at this time (4.5.2) contains the fix. Get the latest version and this issue will be resolved.

I still have the problem on Mac. There’s no zipalign.exe file there and Unity 4.5.2 still has the same issue :frowning:

I know it can be outdated but I stumbled to this issue with API 20 of Android, so i post the solution if somebody will need it.

@Nub3h you need to download Android SDK Build Tools, than in sdk/build tools 20.0.0 folder will appear, in which you will find the zipalign.exe. Rest is like posted above.

just simple, copy and pase zipallin from buildtool to tool folder