Android Unable to merge android manifest Error
Hello I'm high school student's. I finish making games, but I can't build project Because of merge android manifest Error. I'm not expert programmer, and Korean internet cafe do not solve this error..
I'm use 5.3.5f ver, and I want use google in app purchasing
I wan't finish my project. Please help me Professional
Error: [Temp\StagingArea\AndroidManifest-main.xml:13, C:\Users\Administrator\Desktop\World destroy - ENGLISH\Temp\StagingArea\android-libraries\unityads-release\AndroidManifest.xml:9] Trying to merge incompatible /manifest/application/activity[@name=com.unity3d.ads.android.view.UnityAdsFullscreenActivity] element:
UnityEditor.HostView:OnGUI()
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:/Program Files (x86)/Java/jdk1.8.0_71\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="D:/SDK\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Error: [Temp\StagingArea\AndroidManifest-main.xml:13, C:\Users\Administrator\Desktop\World destroy - ENGLISH\Temp\StagingArea\android-libraries\unityads-release\AndroidManifest.xml:9] Trying to merge incompatible /manifest/application/activity[@name=com.unity3d.ads.android.view.UnityAdsFullscreenActivity] element:
<activity
@android:name="com.unity3d.ads.android.view.UnityAdsFullscreenActivity"
-- @tools:ignore="UnusedAttribute"
-- @xmlns:tools="tools">
--</activity>
<activity
@android:name="com.unity3d.ads.android.view.UnityAdsFullscreenActivity"
++ @tools:ignore="UnusedAttribute">
++</activity>
++(end reached)
]
stdout[
[Temp\StagingArea\AndroidManifest-main.xml:12, C:\Users\Administrator\Desktop\World destroy - ENGLISH\Temp\StagingArea\android-libraries\GooglePlay\AndroidManifest.xml:9] Skipping identical /manifest/application/activity[@name=com.unity.purchasing.googleplay.PurchaseActivity] element.
]
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()
Error building Player: CommandInvokationFailure: Unable to merge android manifests. See the Console for more details.
C:/Program Files (x86)/Java/jdk1.8.0_71\bin\java.exe -Xmx1024M -Dcom.android.sdkmanager.toolsdir="D:/SDK\tools" -Dfile.encoding=UTF8 -jar "C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
stderr[
Error: [Temp\StagingArea\AndroidManifest-main.xml:13, C:\Users\Administrator\Desktop\World destroy - ENGLISH\Temp\StagingArea\android-libraries\unityads-release\AndroidManifest.xml:9] Trying to merge incompatible /manifest/application/activity[@name=com.unity3d.ads.android.view.UnityAdsFullscreenActivity] element:
<activity
@android:name="com.unity3d.ads.android.view.UnityAdsFullscreenActivity"
-- @tools:ignore="UnusedAttribute"
-- @xmlns:tools="tools">
--</activity>
<activity
@android:name="com.unity3d.ads.android.view.UnityAdsFullscreenActivity"
++ @tools:ignore="UnusedAttribute">
++</activity>
++(end reached)
]
stdout[
[Temp\StagingArea\AndroidManifest-main.xml:12, C:\Users\Administrator\Desktop\World destroy - ENGLISH\Temp\StagingArea\android-libraries\GooglePlay\AndroidManifest.xml:9] Skipping identical /manifest/application/activity[@name=com.unity.purchasing.googleplay.PurchaseActivity] element.
]
Answer by liortal · Mar 13, 2017 at 06:23 PM
As the error message suggests - manifest merging that takes place as part of the Android build process has failed. You have the same element declared in 2 different AndroidManifest.xml files, only with slightly different settings. The build process tries to merge all manifests together but fails, since it doesn't know how to handle this case.
From the error message, here is the element that cannot be merged:
<activity
@android:name="com.unity3d.ads.android.view.UnityAdsFullscreenActivity"
@tools:ignore="UnusedAttribute"
@xmlns:tools="tools">
</activity>
and:
<activity
@android:name="com.unity3d.ads.android.view.UnityAdsFullscreenActivity"
@tools:ignore="UnusedAttribute">
</activity>
You have the UnityAdsFullscreenActivity defined in 2 manifests, but one of them specifies the "xmlns:tools" setting while the other doesn't. There's no point in defining this activity more than once. Find out the locations where it is set and make sure it is only defined once. This should solve your problem.
Your answer
Follow this Question
Related Questions
Cannot merge android manifests 1 Answer
Need some help with Unity Airpush plugin 0 Answers
Unable to package Android app resources, even when blank app. 100 following. 0 Answers
CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. 1 Answer
Android build problem 0 Answers