- Home /
CommandInvokationFailure: Failed to re-package resources after integrating Chartboost
I have google play services in my android game to use leaderboards. Everything worked fine untill I integrated Chartboost ad plugin. When I build, I'm getting this error. I'm using the latest SDK tools and the latest google play services plugin. Here's the erro.
CommandInvokationFailure: Failed to re-package resources. C:\Users\SonicDirewolf\AppData\Local\Android\sdk\build-tools\27.0.3\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/SonicDirewolf/AppData/Local/Android/sdk\platforms\android-27\android.jar" -F bin/resources.ap_ --extra-packages com.chartboost.sdk.unity:android.support.compat:android.support.coreui:android.support.coreutils:android.support.fragment:android.support.mediacompat:android.support.v4:com.google.android.gms.auth.api:com.google.android.gms.auth.api:com.google.android.gms.auth.api.phone.license:com.google.android.gms.auth:com.google.android.gms.auth.license:com.google.android.gms.base:com.google.android.gms.base.license:com.google.android.gms:com.google.android.gms.common.license:com.google.android.gms.drive:com.google.android.gms.drive.license:com.google.android.gms.games:com.google.android.gms.games.license:com.google.android.gms.nearby:com.google.android.gms.nearby.license:com.google.android.gms.tasks:com.google.android.gms.tasks.license:com.google.games.bridge:com.unity.purchasing:com.android.vending.billing:com.unity.purchasing.googleplay:com.google.example.games.mainlibproj:com.google.android.gms -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.android.support.support-compat-25.2.0\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.android.support.support-core-ui-25.2.0\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.android.support.support-core-utils-25.2.0\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.android.support.support-fragment-25.2.0\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-25.2.0\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.android.support.support-v4-25.2.0\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-auth-11.6.2\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-auth-api-phone-11.6.2\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-auth-base-11.6.2\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-base-11.6.2\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-basement-11.6.2\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-drive-11.6.2\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-games-11.6.2\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-nearby-11.6.2\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-tasks-11.6.2\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.google.games.gpgs-plugin-support-0.9.50\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\common\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\GoogleAIDL\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\GooglePlay\res" -S "C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res"
stderr[ C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-base-11.6.2\res\values\values.xml:33: error: Attribute "imageAspectRatioAdjust" already defined with incompatible format. C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values\values.xml:3: Original attribute defined here. ] stdout[ Configurations: (default) ca da fa ja ka pa ta be de ne te af bg th fi hi si vi kk mk sk uk el gl ml nl pl sl am km bn in kn mn ko lo no ro sq ar fr hr mr sr tr ur bs cs es is ms et it lt eu gu hu ru zu lv sv iw sw hy ky my az uz fr-rCA en-rGB zh-rHK zh-rCN pt-rBR es-rUS pt-rPT zh-rTW
Files: values\values.xml Src: () C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values\values.xml Src: (ca) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ca\values.xml Src: (da) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-da\values.xml Src: (fa) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-fa\values.xml Src: (ja) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ja\values.xml Src: (ka) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ka\values.xml Src: (pa) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-pa\values.xml Src: (ta) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ta\values.xml Src: (be) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-be\values.xml Src: (de) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-de\values.xml Src: (ne) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ne\values.xml Src: (te) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-te\values.xml Src: (af) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-af\values.xml Src: (bg) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-bg\values.xml Src: (th) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-th\values.xml Src: (fi) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-fi\values.xml Src: (hi) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-hi\values.xml Src: (si) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-si\values.xml Src: (vi) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-vi\values.xml Src: (kk) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-kk\values.xml Src: (mk) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-mk\values.xml Src: (sk) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-sk\values.xml Src: (uk) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-uk\values.xml Src: (el) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-el\values.xml Src: (gl) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-gl\values.xml Src: (ml) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ml\values.xml Src: (nl) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-nl\values.xml Src: (pl) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-pl\values.xml Src: (sl) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-sl\values.xml Src: (am) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-am\values.xml Src: (km) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-km\values.xml Src: (bn) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-bn\values.xml Src: (in) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-in\values.xml Src: (kn) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-kn\values.xml Src: (mn) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-mn\values.xml Src: (ko) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ko\values.xml Src: (lo) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-lo\values.xml Src: (no) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-no\values.xml Src: (ro) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ro\values.xml Src: (sq) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-sq\values.xml Src: (ar) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ar\values.xml Src: (fr) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-fr\values.xml Src: (hr) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-hr\values.xml Src: (mr) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-mr\values.xml Src: (sr) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-sr\values.xml Src: (tr) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-tr\values.xml Src: (ur) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ur\values.xml Src: (bs) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-bs\values.xml Src: (cs) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-cs\values.xml Src: (es) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-es\values.xml Src: (is) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-is\values.xml Src: (ms) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ms\values.xml Src: (et) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-et\values.xml Src: (it) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-it\values.xml Src: (lt) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-lt\values.xml Src: (eu) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-eu\values.xml Src: (gu) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-gu\values.xml Src: (hu) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-hu\values.xml Src: (ru) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ru\values.xml Src: (zu) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-zu\values.xml Src: (lv) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-lv\values.xml Src: (sv) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-sv\values.xml Src: (iw) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-iw\values.xml Src: (sw) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-sw\values.xml Src: (hy) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-hy\values.xml Src: (ky) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-ky\values.xml Src: (my) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-my\values.xml Src: (az) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-az\values.xml Src: (uz) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-uz\values.xml Src: (fr-rCA) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-fr-rCA\values.xml Src: (en-rGB) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-en-rGB\values.xml Src: (zh-rHK) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-zh-rHK\values.xml Src: (zh-rCN) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-zh-rCN\values.xml Src: (pt-rBR) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-pt-rBR\values.xml Src: (es-rUS) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-es-rUS\values.xml Src: (pt-rPT) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-pt-rPT\values.xml Src: (zh-rTW) C:\Users\SonicDirewolf\Documents\MONKEY HOPPER\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values-zh-
I have same issue... Did you managed to find solution for this error?
Answer by DyrdaOrg · Mar 26, 2018 at 07:48 AM
Hi @SonicDirewolf !
I had exactly the same issue. I recommend to delete the play-services-basement-9.0.0.arr file from Assets/Plugin/Android folder. After that Internal build should be successful :)
I tested by uploading my app http://bit.ly/SamuraiMemory and both achievements and leaderboard are working (as well as chartboost ads).
If I helped, please accept my answer and upvote it, so other devs can benefit from this solution.
Your answer
Follow this Question
Related Questions
How do i fix a webgl builiding problem? 0 Answers
Addressables Unknown Assembly Error 2 Answers
Getting Error but can't see why ? (Solved)(due to own stupidity) 1 Answer
Unable to convert classes into dex format. 1 Answer
Multiple errors with vuforia namespace names while building with Unity Cloud Build 1 Answer