Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unable to merge android manifests.

Discussion in 'Scripting' started by ahmadomar966, Mar 5, 2018.

  1. ahmadomar966

    ahmadomar966

    Joined:
    Mar 2, 2018
    Posts:
    6
    CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
    C:/Program Files/Java/jdk1.8.0_161\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/LENOVO/Desktop/Sdk\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -

    stderr[
    Error: [Temp\StagingArea\AndroidManifest-main.xml, C:\bb\Temp\StagingArea\android-libraries\play-services-ads-lite-10.2.1\AndroidManifest.xml:10] Trying to merge incompatible /manifest/application/activity[@name=com.google.android.gms.ads.AdActivity] element:
    <activity
    -- @android:exported="false"
    -- @android:name="com.google.android.gms.ads.AdActivity"
    -- @android:theme="@android:style/Theme.Translucent">
    <activity
    ++ @android:name="com.google.android.gms.ads.AdActivity"
    ++ @android:theme="@android:style/Theme.Translucent">
    ++</activity>
    ]
    stdout[
    [Temp\StagingArea\AndroidManifest-main.xml, C:\bb\Temp\StagingArea\android-libraries\play-services-base-10.2.1\AndroidManifest.xml:4] Skipping identical /manifest/application/activity[@name=com.google.android.gms.common.api.GoogleApiActivity] element.
    [Temp\StagingArea\AndroidManifest-main.xml, C:\bb\Temp\StagingArea\android-libraries\play-services-basement-10.2.1\AndroidManifest.xml:5] Skipping identical /manifest/application/meta-data[@name=com.google.android.gms.version] element.
    ]
    exit code: 1
    UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    UnityEditor.Android.AndroidSDKTools.RunCommandInternal (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    UnityEditor.Android.AndroidSDKTools.RunCommandSafe (System.String javaExe, System.String sdkToolsDir, System.String[] sdkToolCommand, Int32 memoryMB, System.String workingdir, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
    UnityEditor.HostView:OnGUI()
     
  2. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,146
    Looks like you have multiple manifest files with the same activity defined in them. Take a look in the two folders they show and check the manifest files there and see if they both define the same activity like the error message shows. It's possible you don't even need both manifest files.
     
  3. ahmadomar966

    ahmadomar966

    Joined:
    Mar 2, 2018
    Posts:
    6
    hi thanks for reply , i opened the two android manifest how can i see they are defined in both ?
     
  4. ahmadomar966

    ahmadomar966

    Joined:
    Mar 2, 2018
    Posts:
    6
     
  5. Brathnann

    Brathnann

    Joined:
    Aug 12, 2014
    Posts:
    7,146
    Maybe try the Android subforum and post a link to this post. https://forum.unity.com/forums/android.30/

    I can generally solve manifest issues, but I'd have to see all the manifest files in your project to see if there is a conflict being created. This isn't an error I recognize, but I am pretty sure I have an idea of what it is saying.
     
  6. Rakshithaabc

    Rakshithaabc

    Joined:
    Jul 6, 2017
    Posts:
    1
    I have this problem also,so can you give a idea to solve this problem sir?