• 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
Question by williamxd51 · Jun 22, 2016 at 05:59 AM · androidbuildandroid builderror builderror-building-player

CommandInvokationFailure when building apk... Trying to use Google Play Services

I'm trying to make an app that uses google play services but this is the error i get:

 CommandInvokationFailure: Failed to re-package resources. See the Console for details.
 C:\Users\wsuh\AppData\Local\Android\sdk\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/wsuh/AppData/Local/Android/sdk\platforms\android-24\android.jar" -F bin/resources.ap_ --extra-packages com.google.firebase:com.google.example.games.mainlibproj:com.google.android.gms.auth:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.drive:com.google.android.gms.games:com.google.android.gms.nearby:com.google.android.gms.tasks:android.support.v4 -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\firebase-common-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-auth-base-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-basement-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-drive-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-games-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-nearby-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-tasks-9.0.2\res" -S "C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\support-v4-23.4.0\res"
 
 stderr[
 
 ]
 stdout[
 Configurations:
  (default)
 
 Files:
   AndroidManifest.xml
     Src: () AndroidManifest.xml
 
 Resource Dirs:
 Including resources from package: C:\Users\wsuh\AppData\Local\Android\sdk\platforms\android-24\android.jar
 applyFileOverlay for drawable
 trying overlaySet Key=common_full_open_on_phone.png
 trying overlaySet Key=common_google_signin_btn_icon_dark.xml
 trying overlaySet Key=common_google_signin_btn_icon_dark_disabled.9.png
 trying overlaySet Key=common_google_signin_btn_icon_dark_focused.9.png
 trying overlaySet Key=common_google_signin_btn_icon_dark_normal.9.png
 trying overlaySet Key=common_google_signin_btn_icon_dark_pressed.9.png
 trying overlaySet Key=common_google_signin_btn_icon_light.xml
 trying overlaySet Key=common_google_signin_btn_icon_light_disabled.9.png
 trying overlaySet Key=common_google_signin_btn_icon_light_focused.9.png
 trying overlaySet Key=common_google_signin_btn_icon_light_normal.9.png
 trying overlaySet Key=common_google_signin_btn_icon_light_pressed.9.png
 trying overlaySet Key=common_google_signin_btn_text_dark.xml
 trying overlaySet Key=common_google_signin_btn_text_dark_disabled.9.png
 trying overlaySet Key=common_google_signin_btn_text_dark_focused.9.png
 trying overlaySet Key=common_google_signin_btn_text_dark_normal.9.png
 trying overlaySet Key=common_google_signin_btn_text_dark_pressed.9.png
 trying overlaySet Key=common_google_signin_btn_text_light.xml
 trying overlaySet Key=common_google_signin_btn_text_light_disabled.9.png
 trying overlaySet Key=common_google_signin_btn_text_light_focused.9.png
 trying overlaySet Key=common_google_signin_btn_text_light_normal.9.png
 trying overlaySet Key=common_google_signin_btn_text_light_pressed.9.png
 trying overlaySet Key=common_ic_googleplayservices.png
 trying overlaySet Key=common_plus_signin_btn_icon_dark.xml
 trying overlaySet Key=common_plus_signin_btn_icon_dark_disabled.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_dark_focused.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_dark_normal.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_dark_pressed.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_light.xml
 trying overlaySet Key=common_plus_signin_btn_icon_light_disabled.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_light_focused.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_light_normal.9.png
 trying overlaySet Key=common_plus_signin_btn_icon_light_pressed.9.png
 trying overlaySet Key=common_plus_signin_btn_text_dark.xml
 trying overlaySet Key=common_plus_signin_btn_text_dark_disabled.9.png
 trying overlaySet Key=common_plus_signin_btn_text_dark_focused.9.png
 trying overlaySet Key=common_plus_signin_btn_text_dark_normal.9.png
 trying overlaySet Key=common_plus_signin_btn_text_dark_pressed.9.png
 trying overlaySet Key=common_plus_signin_btn_text_light.xml
 trying overlaySet Key=common_plus_signin_btn_text_light_disabled.9.png
 trying overlaySet Key=common_plus_signin_btn_text_light_focused.9.png
 trying overlaySet Key=common_plus_signin_btn_text_light_normal.9.png
 trying overlaySet Key=common_plus_signin_btn_text_light_pressed.9.png
 trying overlaySet Key=app_banner.png
 trying overlaySet Key=app_icon.png
 applyFileOverlay for layout
 applyFileOverlay for anim
 applyFileOverlay for animator
 applyFileOverlay for interpolator
 applyFileOverlay for transition
 applyFileOverlay for xml
 applyFileOverlay for raw
 applyFileOverlay for color
 trying overlaySet Key=common_google_signin_btn_text_dark.xml
 trying overlaySet Key=common_google_signin_btn_text_light.xml
 trying overlaySet Key=common_plus_signin_btn_text_dark.xml
 trying overlaySet Key=common_plus_signin_btn_text_light.xml
 applyFileOverlay for menu
 applyFileOverlay for mipmap
 Processing image: res\drawable-xhdpi\app_banner.png
 Processing image: res\drawable\app_icon.png
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_full_open_on_phone.png
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-tvdpi-v4\common_full_open_on_phone.png
     (processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_full_open_on_phone.png: 136% size of source)
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-hdpi-v4\common_full_open_on_phone.png
     (processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-tvdpi-v4\common_full_open_on_phone.png: 105% size of source)
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xhdpi-v4\common_full_open_on_phone.png
     (processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-hdpi-v4\common_full_open_on_phone.png: 105% size of source)
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xxhdpi-v4\common_full_open_on_phone.png
     (processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xhdpi-v4\common_full_open_on_phone.png: 105% size of source)
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png
     (processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xxhdpi-v4\common_full_open_on_phone.png: 105% size of source)
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-tvdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png
     (processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png: 270% size of source)
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png
     (processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-tvdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png: 242% size of source)
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xhdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png
     (processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png: 268% size of source)
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png
     (processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xhdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png: 261% size of source)
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_google_signin_btn_icon_dark_focused.9.png
     (processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-mdpi-v4\common_google_signin_btn_icon_dark_focused.9.png: 151% size of source)
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-tvdpi-v4\common_google_signin_btn_icon_dark_focused.9.png
     (processed image C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_dark_disabled.9.png: 244% size of source)
 Processing image: C:\Users\wsuh\Documents\test2\Temp\StagingArea\android-libraries\play-services-base-9.0.2\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_focused.9.png
     (processed image C:\User
 ]
 UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
 UnityEditor.Android.PostProcessAndroidPlayer.Exec (System.String command, System.String args, System.String workingdir, System.String[] progress_strings, Single progress_value, System.String errorMsg)
 UnityEditor.Android.PostProcessAndroidPlayer.CompileResources (System.String stagingArea, System.String packageName, UnityEditor.Android.AndroidLibraries androidLibraries)
 UnityEditor.Android.PostProcessAndroidPlayer.PostProcessInternal (System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
 UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
 UnityEditor.HostView:OnGUI()





How do i fix this? I've tried reinstalling the Android SDK, update every single library and tried creating apk from a blank project with only the google play services imported.

Comment

People who like this

0 Show 0
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

0 Replies

  • Sort: 

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta on June 13. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

I have a build problem android. 0 Answers

Lightmap resolution "breaking" on building for Android 0 Answers

I am having trouble building the project for android (i can't build) 0 Answers

CommandInvokationFailure: Failed to re-package resources when added GooglePlayGames plugin 2 Answers

Build and Run Problem, Nothing Happen !! 4 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