Search Unity

trouble with Android Manifest when building

Discussion in 'Editor & General Support' started by NathanGroovy, Jul 4, 2018.

  1. NathanGroovy

    NathanGroovy

    Joined:
    Sep 9, 2015
    Posts:
    43
    I'm trying to implement Google Play's API into my game project and when I try and make an android build I keep getting this error related to an Android Manifest file, it's a long one too:

    CommandInvokationFailure: Failed to re-package resources.
    /Users/nathangroovy/Documents/Android/sdk/build-tools/25.0.2/aapt package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "/Users/nathangroovy/Documents/Android/sdk/platforms/android-25/android.jar" -F bin/resources.ap_ --extra-packages com.android.vending.billing:com.unity.purchasing.googleplay:spacemadness.com.lunarconsole: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.google.android.gms.auth.api: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:com.unity3d.ads -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/GoogleAIDL/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/GooglePlay/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/LunarConsole/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.android.support.support-compat-25.2.0/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.android.support.support-core-ui-25.2.0/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.android.support.support-core-utils-25.2.0/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.android.support.support-fragment-25.2.0/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.android.support.support-media-compat-25.2.0/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.android.support.support-v4-25.2.0/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-auth-11.6.2/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-auth-api-phone-11.6.2/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-auth-base-11.6.2/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-base-11.6.2/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-basement-11.6.2/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-drive-11.6.2/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-games-11.6.2/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-nearby-11.6.2/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.google.android.gms.play-services-tasks-11.6.2/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/com.google.games.gpgs-plugin-support-0.9.50/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/common/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-auth-10.2.1/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-auth-base-10.2.1/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-base-10.2.1/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-basement-10.2.1/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-drive-10.2.1/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-games-10.2.1/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-nearby-10.2.1/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-tasks-10.2.1/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/support-v4-24.0.0/res" -S "/Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/unity-ads/res"

    stderr[
    /Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/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.
    /Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-base-10.2.1/res/values/values.xml:34: Original attribute defined here.
    /Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/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.
    /Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-base-10.2.1/res/values/values.xml:47: Original attribute defined here.
    /Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/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.
    /Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-base-10.2.1/res/values/values.xml:55: Original attribute defined here.
    ]
    stdout[
    Configurations:
    (default)

    Files:
    AndroidManifest.xml
    Src: () AndroidManifest.xml

    Resource Dirs:
    Including resources from package: /Users/nathangroovy/Documents/Android/sdk/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=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_standa<message truncated>

    I've been stuck on this for a while and have no idea what's wrong. If anybody has any ideas, please enlighten me!
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    /Users/nathangroovy/Desktop/Video Game Projects/Fart Man Deluxe/Temp/StagingArea/android-libraries/play-services-base-10.2.1/res/values/values.xml:55: Original attribute defined here.

    You probably have duplicate "Google Play Services" libraries.