- Home /
CommandInvokationFailure: Failed to re-package resources.
I am having this error while building for android unity. Unity version: 5.5.1 Android Build-tools: 25.0.2
Any help?
CommandInvokationFailure: Failed to re-package resources. C:\AndroidSDK\build-tools\25.0.2\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/AndroidSDK\platforms\android-25\android.jar" -F bin/resources.ap_ --extra-packages com.unity.purchasing:com.android.vending.billing:com.unity.purchasing.googleplay: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:com.google.android.gms:com.google.android.gms.clearcut: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:android.support.v4:com.unity3d.ads -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\common\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\GoogleAIDL\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\GooglePlay\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-ads-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-ads-lite-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-auth-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-auth-base-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-basement-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-clearcut-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-drive-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-games-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-gass-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-nearby-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-tasks-10.2.1\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\support-v4-24.0.0\res" -S "C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\unity-ads\res"
stderr[ C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\values\values.xml:33: error: Attribute "imageAspectRatioAdjust" already defined with incompatible format. C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-basement-9.0.0\res\values\values.xml:3: Original attribute defined here. ] stdout[ Configurations: (default)
Files: AndroidManifest.xml Src: () AndroidManifest.xml
Resource Dirs: Including resources from package: C:\AndroidSDK\platforms\android-25\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=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_google_signin_btn_tint.xml applyFileOverlay for menu applyFileOverlay for mipmap Processing image: res\drawable-xhdpi\app_banner.png Processing image: res\drawable-mdpi\app_icon.png Processing image: C:\UserPsr\otchees_sli\nDg oicmaugmeen:t s\UnCi:t\yU sPerrso\jtehcet_sl\\SDcorceuamme nRtus\nU\nTietmyp \PSrtoajgeicntgsA\rSecar\eaamn dRruoni\d-lTiebmrpa\rSiteasg\ipnlgaAyr-eas\earnvdircoeisd--blaisber-a1r0i.e2s.\1p\lareys-\sderravwiacbesl-bea-shed-p1i0-.v2.41\\croemsm\ond_rfuallw_aobpleen-_xohnd_ppih-ovn4e.cponmgm on_full_open_on_phone.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\common_full_open_on_phone.png: 120% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\common_full_open_on_phone.png: 105% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png: 164% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png: 151% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png: 138% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png: 169% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png (processed image res\drawable-mdpi\app_icon.png: 90% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png: 146% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_dark_normal_background.9.png: 136% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png: 135% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png (processed image res\drawable-xhdpi\app_banner.png: 93% size of source) (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png: 152% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xxhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png: 129% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\common_google_signin_btn_text_light_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xxhdpi-v4\common_google_signin_btn_icon_light_normal_background.9.png: 134% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\common_google_signin_btn_text_light_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png: 130% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\common_google_signin_btn_text_light_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\common_google_signin_btn_text_light_normal_background.9.png: 156% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xxhdpi-v4\common_google_signin_btn_text_light_normal_background.9.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\common_google_signin_btn_text_light_normal_background.9.png: 127% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\googleg_disabled_color_18.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\googleg_disabled_color_18.png: 164% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\googleg_disabled_color_18.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\googleg_disabled_color_18.png: 153% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\googleg_disabled_color_18.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\googleg_disabled_color_18.png: 153% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xxhdpi-v4\googleg_disabled_color_18.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xxhdpi-v4\googleg_disabled_color_18.png: 146% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\googleg_standard_color_18.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-mdpi-v4\googleg_standard_color_18.png: 123% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\googleg_standard_color_18.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-hdpi-v4\googleg_standard_color_18.png: 122% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\googleg_standard_color_18.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\common_google_signin_btn_text_light_normal_background.9.png: 128% size of source) Processing image: C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xxhdpi-v4\googleg_standard_color_18.png (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xhdpi-v4\googleg_standard_color_18.png: 125% size of source) (processed image C:\Users\the_l\Documents\Unity Projects\Scream Run\Temp\StagingArea\android-libraries\play-services-base-10.2.1\res\drawable-xxhdpi-v4\common_google_signin_btn_text_dark_normal_background.9.png: 132% size of sour
Your answer
Follow this Question
Related Questions
Unity 5.6.0f1 Does not support Nougat 7+ ? Google Console lists Nougat 7+ as unsupported on my apks. 0 Answers
Google Play showing This app is incompatible with all of your devices 1 Answer
Androidmanifest.xml problem 0 Answers
Can't get .aab build because of Gradle error 0 Answers
unity android internal only 0 Answers