- Home /
Android build error: win 32 aapt.exe ?
I keep getting this error when I try an Android build:
Error building Player: Win32Exception: ApplicationName='C:\Users\jimmy's girl\Desktop\SDK files\adt-bundle-windows-x86_64-20131030\sdk\build-tools\android-4.4\aapt.exe', CommandLine='package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/jimmy's girl/Desktop/SDK files/adt-bundle-windows-x86_64-20131030/sdk/platforms/android-19\android.jar" -F bin/resources.ap_', CurrentDirectory='Temp/StagingArea'
What I've tried: Installed both 32 and 64 bit of jdk. Re-installed Unity and adt bundle. Installed all tools in the sdk and latest versions. I've tried to build different projects. Searched the forums for answers. I'm at a loss.
Answer by retrobullet · Apr 14, 2016 at 12:10 PM
dudes !!!! just erase all the:
folders that are inside the build-tools folder (appdata>local>android>sdk>build=tools) and also delete al folders that are inside the "platforms" folder (appdata>local>android>sdk>platforms)
Then start unity again .. and build your file !! now it will popup with a msg that you need to update files for continuing the build (.apk file) and it will install the correct build-tool and the correct platform itself !!
Best regards,
You, my friend, are a friggin LIFE SAVER. I've spent the past 4 hours straight trying to find a solution to this problem. Everyone who brought up this error ended up having an issue with some sort of plugin they had inside their assets. They also had stuff printing out under stderr and stdout. I had neither of these, therefore no solutions matched what my problem was.
This worked like a dang charm. Thanks again. Thank you thank you thank you thank you.
Agreed, this should have gotten the best answer tag. I hit a brick wall trying to test things on my Cardboard a few days ago, and this saved my life. THAN$$anonymous$$S!
This... Finally a working solution after three weeks of being unable to build for android that. I literally tried everything under the sun to get it working and only this got me anywhere.
Thank you so much!~
Answer by solci · Apr 26, 2014 at 10:11 PM
Are you using the r22 of android SDK, if so, Google decided to move the aapt.exe from tools directory to build-tools//aapt.exe
A quick solution for this is co copy the aapt.exe file from build-tools and paste as shortcut on tools directory. Keep the shortcut name as aapt.exe
Answer by motomancr250 · Jun 19, 2016 at 08:55 PM
I ended up smashing my computer in half. Bought a new one, now it works
Answer by Beweeted · Dec 12, 2016 at 08:09 AM
Another possibility: I followed the tutorial that said I only needed to install whatever was required for the OS version I was running on (Android 6.0 in my case), so I only installed that. You also have to install the corresponding Tools, which is where aapt.exe is. I installed extra things, looking for the right stuff, but I think I highlighted the important ones for my version:
Answer by Meltdown · Sep 25, 2014 at 12:14 AM
Solci's post above is a great solution. If aapt.exe is not in \build-tools folder, you will need to update to a newer version of the Android SDK Build Tools from the Android SDK Manager
Your answer

Follow this Question
Related Questions
Unity freezes on Packaging assest:sharedassets0.assest 2 Answers
Unity: Cannot find Android Device 3 Answers
i cant build my android game please help 0 Answers
Unity not building used assets 1 Answer