Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by caox · Mar 13, 2017 at 01:43 PM · androidandroid buildandroidpluginandroid-manifestmanifest

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.
  ]


Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

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.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

152 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges