Not able to publish android application from unity.

Hi everyone, I am new to unity android platform. I just tried to publish a scene. It is giving me an error message like " Error building Player: Win32Exception: ApplicationName=‘F:/Android_SDK/adt-bundle-windows-x86_64-20140702/sdk ools\zipalign.exe’, CommandLine=‘4 “F:\JAYESH\UNITY 3D\Android\Testing\Temp/StagingArea/Package_unaligned.apk” “F:\JAYESH\UNITY3D\Android\Testing2\Temp/StagingArea/Package.apk”’, CurrentDirectory=‘Temp/StagingArea’ " I have no idea what it is. I have set android sdk location from preference to the correct location.
I would like to test the application in AVD. For that what do I need to do? Do I need to install Unity Remote in my AVD?

Please give me some suggestions.

It’s a very common problem with latest ADT release. It happens because they switched zipalign.exe to the build-tools folder (it has happened before with some other tools). You can solve it just by copying zipalign.exe from your F:/AndroidSDK/adt-bundle-windows-x8664-20140702/sdk/build-tools/android4.4W folder to F:/AndroidSDK/adt-bundle-windows-x8664-20140702/sdk/tools folder.

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:

Follow my concise and comprehensive tutorial. It should have all of the info you need:

This was a bug with Unity and the latest android SDK (23.x).

Unity released 4.5.1 p4 that resolved this issue -