• 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
0
Question by azzurit · Feb 04, 2014 at 11:34 AM · androidbuild-error

AAPT failed - Zip add failed

Hi all.

I've got following problem. When I try to build my unity project on android I got following error:

Error building Player: CommandInvokationFailure: Android Asset Packaging Tool failed. See the Console for details. D:\Aplikace\AndroidSDK\build-tools\19.0.1\aapt.exe package -v -f -F assets.ap_ -A assets

stderr[ Unable to add 'assets\bin\Data\ca4e72d75894585449210a11c1ef6a15': Zip add failed ERROR: unable to process assets while packaging 'assets.ap_' ERROR: packaging of 'assets.ap_' failed ]

I tried to remove most of the scenes but without any luck. I've got the latest Unity and latest android SDK installed. I can build other projects (eg. AngryBots) with no problem.

Any suggestions?

Since the project is quite huge (1000+ files), I'd rather not trying to remove "random" components to see if the one specific file caused the problem (since the build lasts about 15 minutes).

EDIT: I use Windows OS. I also tried to identify which file causes the trouble so I searched for ca4e72d75894585449210a11c1ef6a15 in all *.meta files (I supposed it to be a GUID) and I found the file. It's a script - Editor extension! I have plenty of very similar files in my project so I don't believe it's the file content which causes the troubles. MAy be there is too much files or the final apk will be too large? (when I build the game on win platform, the final build size is apx. 1.5 GB).

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

1 Reply

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

Answer by azzurit · Feb 05, 2014 at 01:31 PM

SOLVED: http://forum.unity3d.com/threads/226337-Unity-build-problem-AAPT-failed-Zip-add-failed?p=1507943

Comment
Add comment · Show 1 · 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 SoylentGraham · Dec 29, 2014 at 04:49 PM 0
Share

Just to save others having to look through for your solution: This used to occur because of the size of the game. After setting higher compression of textures and sounds I was able to reduce apk size to apx 700$$anonymous$$B and the build ended with no error.

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

18 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

Related Questions

Android - Error building Player: CommandInvokationFailure: Failed to re-package resources 3 Answers

Failed to find Build Tools revision 29.0.0 - Android Builds 4 Answers

Android Build Error More than one file was found with OS independent path 'play-services-basement.properties' After adding Admob 0 Answers

Error when building peogram onto Android device 0 Answers

Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers


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