Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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 /
  • Help Room /
avatar image
0
Question by DoersDF · Jun 19, 2016 at 09:48 AM · androidbuild-erroraapt

aapt.exe crash CommandInvokationFailure: Failed to re-package resources

When I build and empty scene on Android I get this error. I tried to execute the comand on comand line inside temp folder

C:\SDKAndroid\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/SDKAndroid\platforms\android-24\android.jar" -F bin/resources.ap_

And aapt.exe ALWAYS crash after the line "Processing image: res\drawable\app_icon.png"

I tried everything, I read tons of articles in this formun, android forums and nothings helps.

I'm using

  • Unity 5.3.5f1 Personal 64 bits

  • Windows 10

  • Android Studio

  • Android SDK 24

Here's the complete aapt.exe output:

 C:\SDKAndroid\build-tools\24.0.0\aapt.exe package -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/SDKAndroid\platforms\android-24\android.jar" -F bin/resources.ap_
 
 Configurations:
  (default)
  v14
  v21
  xhdpi-v4
 
 Files:
   drawable\app_icon.png
     Src: () res\drawable\app_icon.png
     Src: (xhdpi-v4) res\drawable-xhdpi\app_icon.png
   values\strings.xml
     Src: () res\values\strings.xml
   values\styles.xml
     Src: () res\values\styles.xml
     Src: (v14) res\values-v14\styles.xml
     Src: (v21) res\values-v21\styles.xml
   AndroidManifest.xml
     Src: () AndroidManifest.xml
 
 Resource Dirs:
   Type drawable
     drawable\app_icon.png
       Src: () res\drawable\app_icon.png
       Src: (xhdpi-v4) res\drawable-xhdpi\app_icon.png
   Type values
     values\strings.xml
       Src: () res\values\strings.xml
     values\styles.xml
       Src: () res\values\styles.xml
       Src: (v14) res\values-v14\styles.xml
       Src: (v21) res\values-v21\styles.xml
 Including resources from package: C:\SDKAndroid\platforms\android-24\android.jar
 
 applyFileOverlay for drawable
 
 applyFileOverlay for layout
 
 applyFileOverlay for anim
 
 applyFileOverlay for animator
 
 applyFileOverlay for interpolator
 
 applyFileOverlay for transition
 
 applyFileOverlay for xml
 
 applyFileOverlay for raw
 
 applyFileOverlay for color
 
 applyFileOverlay for menu
 
 applyFileOverlay for mipmap
 
 Processing image: res\drawable\app_icon.png

Crash image aapt.exe

err.png (120.0 kB)
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

Answer by varius · Jun 19, 2016 at 08:16 PM

I got the same problem today, even with a new, clean project. It seems to be a problem with aapt tool from the newest Android SDK Build Tools. I've downgraded my build tools form 24 to 23.0.3 and it works (I'm using SDK 23 with Android Studio on Win10).

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

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

87 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 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 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 Build error 1 Answer

APK for Android cannot be built 0 Answers

The attribute meta-datattcom.google.android.gms.ads.APPLICATION JD@value=********** in :GoogleMobileAdsPlugin.androidlib collides with another value (See the Console for details) 0 Answers

Large Project build errors. Whats the best way to build large projects locally? 0 Answers

Unity 5.6.2.1f Android Build Error 0 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