Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by motomancr250 · Mar 02, 2014 at 06:32 PM · androidbuild-erroraapt

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.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

6 Replies

· Add your reply
  • Sort: 
avatar image
8
Best Answer

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,

Retrobullet.com

Comment
Add comment · Show 7 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image hufos · Jun 19, 2016 at 08:27 PM 0
Share

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.

avatar image nathanharper · Jun 21, 2016 at 02:54 PM 0
Share

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!

avatar image claudioeddy · Jun 25, 2016 at 03:14 AM 0
Share

That's definitely the best solution I've found!

avatar image Souless_Serpent · Jun 27, 2016 at 12:07 AM 1
Share

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!~

avatar image Unixandra · May 23, 2017 at 09:46 PM 1
Share

This didn't work for me at all :/

avatar image akash_virodhia Unixandra · Oct 18, 2017 at 08:02 AM 0
Share

Same here :-(

Show more comments
avatar image
8

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

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Meltdown · Sep 25, 2014 at 12:12 AM 0
Share

Brilliant solution, thanks for that :)

avatar image faraz · Sep 12, 2015 at 07:59 PM 0
Share

not worked in r22

avatar image
3

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
3

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: alt text


android-sdk-setup.png (50.7 kB)
Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

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

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • 1
  • 2
  • ›

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

36 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity freezes on Packaging assest:sharedassets0.assest 2 Answers

AppLovinMax InMobi Adapter failes the build with gradle error about "queries" keywords in Unity 2019.4 3 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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges