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 Selegans · May 01, 2017 at 02:26 PM · androidadmobgoogle play games

Please help! CommandInvokationFailure: Failed to re-package resources!

Hi everyone! Two days ago since I been trying to implement Admob and google play services in my project together. With admob plugin only the project works great but with the google play services plug-in I still have the same problem:

 CommandInvokationFailure: Failed to re-package resources.
 C:\Users\Miguel\Documents\Android\sdk\build-tools\24.0.3\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/Miguel/Documents/Android/sdk\platforms\android-24\android.jar" -F bin/resources.ap_ --extra-packages android.support.v7.appcompat:com.google.example.games.mainlibproj:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.auth.api:com.google.android.gms.auth:com.google.android.gms.base:com.google.android.gms.base:com.google.android.gms:com.google.android.gms:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.gass:com.google.android.gms.nearby:com.google.android.gms.tasks:com.google.android.gms.tasks:android.support.v4 -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-ads-10.2.0\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-ads-lite-10.2.0\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-auth-10.2.1\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-auth-base-10.2.1\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-basement-10.2.0\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-basement-10.2.1\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-drive-10.2.1\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-games-10.2.1\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-gass-10.2.0\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-nearby-10.2.1\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-tasks-10.2.0\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\play-services-tasks-10.2.1\res" -S "C:\Users\Miguel\Documents\Unity Backups\Prueba_Admob_GooglePlay\Temp\StagingArea\android-libraries\support-v4-24.0.0\res"

My android SDK:

alt text

alt text

Please help :c. I use unity 5.4.1f version

an1.png (44.1 kB)
an2.png (25.9 kB)
Comment
Add comment · Show 1
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 · May 05, 2017 at 09:31 PM 0
Share

you did not post the full error message, but from what i can see, you have multiple versions of google play services (for example - play-services-tasks-10.2.1 and play-services-ads-10.2.0).

This kind of mix between different versions can cause the build to fail, but again, i didn't see the full error message so it's hard to tell.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by liortal · May 21, 2017 at 06:38 AM

The error message you posted is not the complete one. Usually, the real cause for the error is at the end of the message. The problem is that Unity's console window truncates these messages as they're too long.

From what i can see, it looks like you have Google play services libraries from different versions, for example:

  • play-services-ads-10.2.0

  • play-services-tasks-10.2.1

This has been known to cause build errors, and should really be avoided.

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

160 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 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

Google Play services and Admob issue 0 Answers

App crashes since AdMob is added 0 Answers

Cannot sign in to Google Play Services 5 Answers

Admob unnecessary permissions? 0 Answers

App closes immediately after opening 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