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?
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:
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.