Hi all, I am trying to build a project in which I have imported only 2 plugins, admob ads and googlepaly game services. When i build the project, error occurs “CommandInvokationFailure : Failed to repackage resources”. The error is much annoying. I’ve searched alot, and tried almost each and every solution explained on web, but the error is standing there like a mountain. I am pasting the error here as it is too big. Any help will be highly appreciable. Kindly help me out. I’m stucked !!!
I’m using unity version 2018.2.2 and my sdk is updated.
**CommandInvokationFailure: Failed to re-package resources.
F:\Sdk\build-tools\28.0.2\aapt.exe package --auto-add-overlay -v -f -m -J “gen” -M “AndroidManifest.xml” -S “res” -I “F:/Sdk\platforms\android-28\android.jar” -F bin/resources.ap_ --extra-packages 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.google.unity:com.google.example.games.mainlibproj:com.heyzap:com.google.android.gms.ads.impl:com.google.android.gms.ads:com.google.android.gms.base:com.google.android.gms:com.google.android.gms.clearcut:com.google.android.gms.gass:android.support.v4:com.unity3d.ads -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.android.support.support-compat-25.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.android.support.support-core-ui-25.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.android.support.support-core-utils-25.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.android.support.support-fragment-25.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.android.support.support-media-compat-25.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.android.support.support-v4-25.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-auth-11.6.2\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-auth-api-phone-11.6.2\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-auth-base-11.6.2\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-base-11.6.2\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-basement-11.6.2\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-drive-11.6.2\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-games-11.6.2\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-nearby-11.6.2\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-tasks-11.6.2\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.games.gpgs-plugin-support-0.9.50\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\play-services-ads-10.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\play-services-ads-lite-10.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\play-services-basement-10.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\play-services-clearcut-10.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\play-services-gass-10.2.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\support-v4-24.0.0\res” -S “F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\UnityAds\res”
stderr[
F:\work\AdsWithGooglePlayGames\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.
F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:34: Original attribute defined here.
F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-base-11.6.2\res\values\values.xml:46: error: Attribute “buttonSize” already defined with incompatible format.
F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:47: Original attribute defined here.
F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\com.google.android.gms.play-services-base-11.6.2\res\values\values.xml:54: error: Attribute “colorScheme” already defined with incompatible format.
F:\work\AdsWithGooglePlayGames\Temp\StagingArea\android-libraries\play-services-base-10.2.0\res\values\values.xml:55: Original attribute defined here.
]
stdout[
Configurations:
(default)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Including resources from package: F:\Sdk\platforms\android-28\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_focused.xml
trying overlaySet Key=common_google_signin_btn_icon_dark_normal.xml
trying overlaySet Key=common_google_signin_btn_icon_dark_normal_background.9.png
trying overlaySet Key=common_google_signin_btn_icon_disabled.xml
trying overlaySet Key=common_google_signin_btn_icon_light.xml
trying overlaySet Key=common_google_signin_btn_icon_light_focused.xml
trying overlaySet Key=common_google_signin_btn_icon_light_normal.xml
trying overlaySet Key=common_google_signin_btn_icon_light_normal_background.9.png
trying overlaySet Key=common_google_signin_btn_text_dark.xml
trying overlaySet Key=common_google_signin_btn_text_dark_focused.xml
trying overlaySet Key=common_google_signin_btn_text_dark_normal.xml
trying overlaySet Key=common_google_signin_btn_text_dark_normal_background.9.png
trying overlaySet Key=common_google_signin_btn_text_disabled.xml
trying overlaySet Key=common_google_signin_btn_text_light.xml
trying overlaySet Key=common_google_signin_btn_text_light_focused.xml
trying overlaySet Key=common_google_signin_btn_text_light_normal.xml
trying overlaySet Key=common_google_signin_btn_text_light_normal_background.9.png
trying overlaySet Key=googleg_disabled_color_18.png
trying overlaySet Key=googleg_standard_color_18.png
trying overlaySet Key=ic_launcher.png
trying overlaySet Key=common_full_open_on_phone.png
baseFile 0 has flavor hdpi-v4
baseFile 1 has flavor xhdpi-v4
overlayFile 0 has flavor hdpi-v4
overlayFile 1 has flavor xhdpi-v4
found a match (0) for overlay file common_full_open_on_phone.png, for flavor hdpi-v4
found a match (1) for overlay file common_full_open_on_phone.png, for flavor xhdpi-v4
trying overlaySet Key=common_google_signin_btn_icon_dark.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_icon_dark.xml, for flavor
trying overlaySet Key=common_google_signin_btn_icon_dark_focused.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_icon_dark_focused.xml, for flavor
trying overlaySet Key=common_google_signin_btn_icon_dark_normal.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_icon_dark_normal.xml, for flavor
trying overlaySet Key=common_google_signin_btn_icon_dark_normal_background.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_google_signin_btn_icon_dark_normal_background.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_google_signin_btn_icon_dark_normal_background.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_google_signin_btn_icon_dark_normal_background.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_google_signin_btn_icon_dark_normal_background.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_google_signin_btn_icon_disabled.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_icon_disabled.xml, for flavor
trying overlaySet Key=common_google_signin_btn_icon_light.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_icon_light.xml, for flavor
trying overlaySet Key=common_google_signin_btn_icon_light_focused.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_icon_light_focused.xml, for flavor
trying overlaySet Key=common_google_signin_btn_icon_light_normal.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_icon_light_normal.xml, for flavor
trying overlaySet Key=common_google_signin_btn_icon_light_normal_background.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_google_signin_btn_icon_light_normal_background.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_google_signin_btn_icon_light_normal_background.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_google_signin_btn_icon_light_normal_background.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_google_signin_btn_icon_light_normal_background.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_google_signin_btn_text_dark.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_text_dark.xml, for flavor
trying overlaySet Key=common_google_signin_btn_text_dark_focused.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_text_dark_focused.xml, for flavor
trying overlaySet Key=common_google_signin_btn_text_dark_normal.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_text_dark_normal.xml, for flavor
trying overlaySet Key=common_google_signin_btn_text_dark_normal_background.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_google_signin_btn_text_dark_normal_background.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_google_signin_btn_text_dark_normal_background.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_google_signin_btn_text_dark_normal_background.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_google_signin_btn_text_dark_normal_background.9.png, for flavor xxhdpi-v4
trying overlaySet Key=common_google_signin_btn_text_disabled.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_text_disabled.xml, for flavor
trying overlaySet Key=common_google_signin_btn_text_light.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_text_light.xml, for flavor
trying overlaySet Key=common_google_signin_btn_text_light_focused.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_text_light_focused.xml, for flavor
trying overlaySet Key=common_google_signin_btn_text_light_normal.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_text_light_normal.xml, for flavor
trying overlaySet Key=common_google_signin_btn_text_light_normal_background.9.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file common_google_signin_btn_text_light_normal_background.9.png, for flavor mdpi-v4
found a match (1) for overlay file common_google_signin_btn_text_light_normal_background.9.png, for flavor hdpi-v4
found a match (2) for overlay file common_google_signin_btn_text_light_normal_background.9.png, for flavor xhdpi-v4
found a match (3) for overlay file common_google_signin_btn_text_light_normal_background.9.png, for flavor xxhdpi-v4
trying overlaySet Key=googleg_disabled_color_18.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file googleg_disabled_color_18.png, for flavor mdpi-v4
found a match (1) for overlay file googleg_disabled_color_18.png, for flavor hdpi-v4
found a match (2) for overlay file googleg_disabled_color_18.png, for flavor xhdpi-v4
found a match (3) for overlay file googleg_disabled_color_18.png, for flavor xxhdpi-v4
trying overlaySet Key=googleg_standard_color_18.png
baseFile 0 has flavor mdpi-v4
baseFile 1 has flavor hdpi-v4
baseFile 2 has flavor xhdpi-v4
baseFile 3 has flavor xxhdpi-v4
overlayFile 0 has flavor mdpi-v4
overlayFile 1 has flavor hdpi-v4
overlayFile 2 has flavor xhdpi-v4
overlayFile 3 has flavor xxhdpi-v4
found a match (0) for overlay file googleg_standard_color_18.png, for flavor mdpi-v4
found a match (1) for overlay file googleg_standard_color_18.png, for flavor hdpi-v4
found a match (2) for overlay file googleg_standard_color_18.png, for flavor xhdpi-v4
found a match (3) for overlay file googleg_standard_color_18.png, for flavor xxhdpi-v4
trying overlaySet Key=common_google_signin_btn_text_dark_normal.xml
baseFile 0 has flavor
overlayFile 0 has flavor watch-v20
nothing matches overlay file common_google_signin_btn_text_dark_normal.xml, for flavor watch-v20
trying overlaySet Key=common_google_signin_btn_text_disabled.xml
baseFile 0 has flavor
overlayFile 0 has flavor watch-v20
nothing matches overlay file common_google_signin_btn_text_disabled.xml, for flavor watch-v20
trying overlaySet Key=common_google_signin_btn_text_light_normal.xml
baseFile 0 has flavor
overlayFile 0 has flavor watch-v20
nothing matches overlay file common_google_signin_btn_text_light_normal.xml, for flavor watch-v20
trying overlaySet Key=app_banner.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_google_signin_btn_tint.xml
trying overlaySet Key=common_google_signin_btn_text_dark.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_text_dark.xml, for flavor
trying overlaySet Key=common_google_signin_btn_text_light.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_text_light.xml, for flavor
trying overlaySet Key=common_google_signin_btn_tint.xml
baseFile 0 has flavor
overlayFile 0 has flavor
found a match (0) for overlay file common_google_signin_btn_tint.xml, for flavor
applyFileOverlay for menu
applyFileOverla**