• 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
12
Question by Manco Capac · Feb 02, 2018 at 11:53 AM · androiderrorbuildapk

Failed to re-package resources.

I have been working on my game for a month. And this problem just occured. I did google this. But i cant solve it. This does not occur when i try to build an empty scene in another project, but only in my current project. I need help.

This is the error in the console. (i dont get much of it):

 Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
 C:\adt-bundle-windows-x86_64-20140702\sdk\build-tools\android-4.4W\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/adt-bundle-windows-x86_64-20140702/sdk/platforms/android-20\android.jar" -F bin/resources.ap_
 
 stderr[
 AndroidManifest.xml:9: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
 ]
 stdout[
 Configurations:
  (default)
  hdpi
  ldpi
  xhdpi
  xxhdpi
 
 Files:
   drawable\app_icon.png
     Src: () res\drawable\app_icon.png
     Src: (hdpi) res\drawable-hdpi\app_icon.png
     Src: (ldpi) res\drawable-ldpi\app_icon.png
     Src: (xhdpi) res\drawable-xhdpi\app_icon.png
     Src: (xxhdpi) res\drawable-xxhdpi\app_icon.png
   values\strings.xml
     Src: () res\values\strings.xml
   AndroidManifest.xml
     Src: () AndroidManifest.xml
 
 Resource Dirs:
   Type drawable
     drawable\app_icon.png
       Src: () res\drawable\app_icon.png
       Src: (hdpi) res\drawable-hdpi\app_icon.png
       Src: (ldpi) res\drawable-ldpi\app_icon.png
       Src: (xhdpi) res\drawable-xhdpi\app_icon.png
       Src: (xxhdpi) res\drawable-xxhdpi\app_icon.png
   Type values
     values\strings.xml
       Src: () res\values\strings.xml
 Including resources from package: C:\adt-bundle-windows-x86_64-20140702\sdk\platforms\android-20\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
 Processing image: res\drawable-hdpi\app_icon.png
 Processing image: res\drawable-ldpi\app_icon.png
 Processing image: res\drawable-xhdpi\app_icon.png
     (processed image res\drawable-ldpi\app_icon.png: 114% size of source)
 Processing image: res\drawable-xxhdpi\app_icon.png
     (processed image res\drawable\app_icon.png: 104% size of source)
     (processed image res\drawable-hdpi\app_icon.png: 96% size of source)
     (processed image res\drawable-xhdpi\app_icon.png: 94% size of source)
     (processed image res\drawable-xxhdpi\app_icon.png: 97% size of source)
     (new resource id app_icon from drawable\app_icon.png #generated)
     (new resource id app_icon from hdpi\drawable\app_icon.png #generated)
     (new resource id app_icon from ldpi\drawable\app_icon.png #generated)
     (new resource id app_icon from xhdpi\drawable\app_icon.png #generated)
     (new resource id app_icon from xxhdpi\drawable\app_icon.png #generated)
 ]
 
Comment
Add comment · Show 10
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 liortal · Jul 31, 2014 at 05:44 PM 1
Share

Do you have a custom Android$$anonymous$$anifest.xml in your project ?

avatar image Manco Capac · Jul 31, 2014 at 06:14 PM 0
Share

nope. nothing like that. i didnt touch anything to do with SD$$anonymous$$s.

avatar image liortal · Jul 31, 2014 at 06:36 PM 3
Share

Can you please list your Assets/Plugins/Android folder if there's anything there?

avatar image Manco Capac · Jul 31, 2014 at 07:02 PM 2
Share

there was Android$$anonymous$$anifest.xml and a unity-plugin-library.jar file. i just deleted the xml file. and it worked. i never made that idk how it got there. thanks :)

and sorry. im very new to android development

avatar image gulfam131 · Oct 13, 2014 at 03:03 PM 1
Share

Thanks a lot, it works, just by deleting . :)

Show more comments

16 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by bob539 · Sep 21, 2019 at 08:27 PM

Cause of Problem: When using Unity's internal build system, minSdkVersion setting in all AndroidManifest.xml files must not be below the minSdkVersion allowed by Unity's internal build system (this includes AndroidManifest.xml files inside libraries and archives e.g .jar and .aar archives). Otherwise this problem occurs. The inconsistent minSdkVersion specifications usually are in AndroidManifest.xml files that come with external plugins. Note: To see the minSdkVersion allowed by Unity's internal build system see the "Player Settings" in the Unity Editor.

Solution to Problem: Remove all tags from all AndroidManifest.xml found in any used plugin, including those inside jar and aar files (requires unpacking jar and aar files and, optionally, repacking them after modifying their AndroidManifest.xml files; note that unpacked library folders can also be imported into Unity plugin folders).

,

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
  • 3
  • 4

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

73 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

Related Questions

Android SDK does not include error 1 Answer

Having issue building apk 1 Answer

APK is installed but does not show the application and does not open either. 1 Answer

Error build android app 1 Answer

Failed to re-package resources using everyplay plugin and google play plugin for leaderboard 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