Search Unity

Unable to merge android manifests

Discussion in 'Formats & External Tools' started by Deleted User, Oct 30, 2018.

  1. Deleted User

    Deleted User

    Guest

    C:\Users\abdullah\Documents\Unity Projects\The Cartel\Temp\StagingArea\AndroidManifest-main.xml:32:67-97 Error:
    Attribute meta-data#com.google.android.gms.games.APP_ID@value value=(@String/app_id) from AndroidManifest-main.xml:32:67-97
    is also present at AndroidManifest.xml:19:13-46 value=(\u003148048280396).
    Suggestion: add 'tools:replace="android:value"' to <meta-data> element at AndroidManifest-main.xml:32:5-100 to override.

    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)
     
  2. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    I get these types of errors frequently with Google Play Games Services. What is probably happening is one plugin or another (perhaps GPGS itself) has a manifest file that is conflicting with another. I'd start by comparing all the AndroidManifest files and figure out whats conflicting (hard to say for sure what it is from these vague errors). Make sure android min versions match, for starters.

    Similar problem here:
    https://forum.unity.com/threads/sudden-error-unable-to-merge-android-manifests.490096/
     
  3. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    Search all of the AndroidManifest.xml files in your project for this element: com.google.android.gms.games.APP_ID
    There can only be one of these (especially since it is probably defined more than once, with different values).
     
    moqam and MD_Reptile like this.