• 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 t$$anonymous$$s problem just occured. I did google t$$anonymous$$s. But i cant solve it. T$$anonymous$$s does not occur when i try to build an empty scene in another project, but only in my current project. I need help.

T$$anonymous$$s 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 AndroidManifest.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 SDKs.

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 AndroidManifest.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
9
Best Answer

Answer by liortal · Oct 20, 2014 at 01:17 PM

The issue is that you have an AndroidManifest.xml file (Probably under Plugins/Android or a plugin in a subfolder of t$$anonymous$$s folder) that tries to access a resource by name (google_play_services_version), but t$$anonymous$$s value is never defined anywhere.

Usually, t$$anonymous$$s value is added via some method such as adding it to the AndroidManifest.xml or to an xml under res/values.

For example, see the documentation here (under Add the Google Play services version to your app's manifest).

NOTE: Sometimes, it can get a bit tricky to find out why the build fails. If all else fails, i recommend you to check out t$$anonymous$$s link - it is a professional service to help fix Android related build issues (due to manifest merging, conflicting plugins, etc). Check it out if you're unable to resolve your issues !

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 Manco Capac · Oct 20, 2014 at 02:27 PM 0
Share

sorry that i hadn't said that liortal's answer was correct. And your's is too. Thanks to both of you

avatar image JonnyHilly · Dec 16, 2014 at 09:02 PM 0
Share
avatar image
9

Answer by chaurasiyapawan · Oct 18, 2014 at 05:08 AM

I found a better solution: Copy google-play-services_lib folder to Plugins/Android, so you don't have to hard code Google Play Service's value. https://github.com/googleads/googleads-mobile-plugins/issues/11

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 MFen · Sep 12, 2015 at 02:20 PM 0
Share
avatar image Elvizcocho · Feb 17, 2018 at 02:26 PM 0
Share
avatar image
4

Answer by mubasherikram · Mar 31, 2015 at 03:08 PM

RESOLVED !!! I was facing t$$anonymous$$s issue w$$anonymous$$le integrating AdMob and ChartBoost via Prime[31]. $$anonymous$$s issue was resolved by following steps.

  1. Delete all plugin Directories.

  2. Import first plugin

  3. import second plugin but remember to uncheck google-game-palay services_lib folder

its done

Comment
Add comment · Show 5 · 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 TarunL · Jul 31, 2015 at 02:55 PM 0
Share
avatar image ethqnit · Oct 12, 2015 at 06:29 AM 0
Share
avatar image DemonIg15 · Jun 07, 2016 at 09:13 AM 0
Share
avatar image julianqwerty · Jun 26, 2016 at 09:02 PM 0
Share
avatar image pophead2 julianqwerty · Jun 27, 2016 at 03:09 PM 0
Share
avatar image
22

Answer by khayamgondal · Apr 07, 2015 at 04:28 AM

To fix t$$anonymous$$s error, you have to copy the version.xml file from

android-sdk/extras/google/google_play_services/libproject/google-play-services_lib/res/values/

into Assets/Plugins/Android/res/values/ of your Unity project's folder.

Comment
Add comment · Show 9 · 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 siyecao · Feb 12, 2016 at 06:05 AM 0
Share
avatar image Adam-Halley-Prinable · Feb 21, 2016 at 12:08 PM 0
Share
avatar image mehdi14 Adam-Halley-Prinable · Mar 22, 2016 at 11:40 PM 0
Share
avatar image rooh452 · Apr 15, 2016 at 02:08 PM 0
Share
avatar image Zamaroht · Jun 13, 2016 at 08:07 PM 0
Share
avatar image Bata1999 · Jun 19, 2016 at 05:04 AM 1
Share
avatar image Vesa Bata1999 · Jun 22, 2016 at 09:39 AM 3
Share
avatar image dneuhaus10 Vesa · Jul 10, 2016 at 01:39 AM 0
Share
Show more comments
avatar image
3

Answer by WikiMalik · Dec 20, 2015 at 11:19 AM

If you are getting that error as a result of Facebook Unity SDK integration T$$anonymous$$s guy has a simple and easy solution

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 RMihai · Feb 08, 2016 at 05:29 PM 0
Share
  • 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

Having issue building apk 1 Answer

Android SDK does not include error 1 Answer

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

Failed to re-package resources using everyplay plugin and google play plugin for leaderboard 0 Answers

Error build android app 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