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
1
Question by boylamn · Oct 15, 2015 at 12:23 PM · androidandroid buildandroidpluginandroid-manifest

Unable to merge android manifests

I have imported the Google Mobile Ads Unity Plugin v2.3.1 to my project and added sdk and ads ID to it. But when i build my game i get the following error:

 Error building Player: CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. 
 C:\Program Files\Java\jdk1.8.0_60\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Me/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "C:/Program Files (x86)/Unity/Editor/Data/BuildTargetTools/AndroidPlayer\sdktools.jar" -
 
 stderr[
 Error: [Temp\StagingArea\AndroidManifest-main.xml:4, D:\Unity Projects\Space Shooter\Temp\StagingArea\android-libraries\GoogleMobileAdsPlugin\AndroidManifest.xml:15] Trying to merge incompatible /manifest/application/activity[@name=com.unity3d.player.UnityPlayerNativeActivity] element:
   <activity
       @android:name="com.unity3d.player.UnityPlayerNativeActivity">
       <intent-filter>
               @android:name="android.intent.action.MAIN">
               @android:name="android.intent.category.LAUNCHER">
 --        <category
 --            @android:name="android.intent.category.LEANBACK_LAUNCHER">
 --        </category>
   <activity
       @android:name="com.unity3d.player.UnityPlayerNativeActivity">
               @android:name="android.intent.action.MAIN">
               @android:name="android.intent.category.LAUNCHER">
 ++    </intent-filter>
 ++    <meta-data
 ++        @android:name="unityplayer.ForwardNativeEventsToDalvik"
 ]
 stdout[
 [Temp\StagingArea\AndroidManifest-main.xml, D:\Unity Projects\Space Shooter\Temp\StagingArea\android-libraries\GoogleMobileAdsPlugin\AndroidManifest.xml:10] Skipping identical /manifest/application/meta-data[@name=com.google.android.gms.version] element.
 ]

I hope someone can help me to fix this.

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
0

Answer by JACLEMGO · Dec 02, 2015 at 02:21 PM

This solved yet?

If not, Im having the same issues, but with Fuse and Stan's Ultimate Mobile (Dont think its Stan)

What I have tried:

  • Make sure there is only one android-support-v4.jar
  • com.google.android.gms.version value should be "@integer/google_play_services_version"
  • Check that all android:minSdkVersion="X" android:targetSdkVersion="XX" are the same in all the Android Manifest Files
  • android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="false" should be android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true"
  • And finally.... Search for style/Theme and make sure its the same for similar activities... the error normally looks something like:

    Unable to merge android manifests....
    Trying to merge incompatible....

     <activity
     --    @android:name="com.google.android.gms.ads.AdActivity">
     --</activity>
     --(end reached)
       <activity
     ++    @android:name="com.google.android.gms.ads.AdActivity"
     ++    @android:theme="@android:style/Theme.Translucent">
     ++</activity>
    
    

    I have not been able to get past the last issue. I think the value of the themes are set from the DLL or JAR files of Fuse

    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

    37 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

    Related Questions

    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

    Unable to convert classes into dex format 12 Answers

    CommandInvokationFailure while using *.aar file in unity project 1 Answer


    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