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 /
avatar image
3
Question by abhijeet1001 · Sep 26, 2015 at 01:26 AM · unity 5manifestandorid

Unity Android Manifest error during Apk Build

Hi , i recently update to Unity 5.2 (non beta ) version and i have free license . Earlier i was working with unity 5.1 and was using Unity Adds SDK and after i upgraded to 5.2 i deleted that SDK from standard assets and started using the built in Unity Add feature . But when i try to build apk now i get following errors in my console and my build process is terminated . By the looks of it , it seems something related to unity adds . I am lost here and would appreciate any kind of help . Thanks !

 CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. 
 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/abhijeet-zu452/Desktop/Android SDK/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/Unity.app/Contents/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -
 
 stderr[
 Error: [Temp/StagingArea/AndroidManifest-main.xml, /Users/abhijeet-zu452/Desktop/Bullet vs Time/Temp/StagingArea/android-libraries/unityads-release/AndroidManifest.xml:8] Trying to merge incompatible /manifest/application/activity[@name=com.unity3d.ads.android.view.UnityAdsFullscreenActivity] element:
   <activity
       @android:name="com.unity3d.ads.android.view.UnityAdsFullscreenActivity"
 --    @android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
 --    @tools:ignore="UnusedAttribute">
 --</activity>
   <activity
       @android:name="com.unity3d.ads.android.view.UnityAdsFullscreenActivity"
 ++    @android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
 ++</activity>
 ++(end reached)
 ]
 stdout[
 
 ]
 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: [Temp/StagingArea/AndroidManifest-main.xml, /Users/abhijeet-zu452/Desktop/Bullet vs Time/Temp/StagingArea/android-libraries/unityads-release/AndroidManifest.xml:8] Trying to merge incompatible /manifest/application/activity[@name=com.unity3d.ads.android.view.UnityAdsFullscreenActivity] element:
 
 UnityEditor.HostView:OnGUI()


 Error building Player: CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. 
 /Library/Java/JavaVirtualMachines/jdk1.8.0_05.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/abhijeet-zu452/Desktop/Android SDK/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/Unity.app/Contents/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -
 
 stderr[
 Error: [Temp/StagingArea/AndroidManifest-main.xml, /Users/abhijeet-zu452/Desktop/Bullet vs Time/Temp/StagingArea/android-libraries/unityads-release/AndroidManifest.xml:8] Trying to merge incompatible /manifest/application/activity[@name=com.unity3d.ads.android.view.UnityAdsFullscreenActivity] element:
   <activity
       @android:name="com.unity3d.ads.android.view.UnityAdsFullscreenActivity"
 --    @android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
 --    @tools:ignore="UnusedAttribute">
 --</activity>
   <activity
       @android:name="com.unity3d.ads.android.view.UnityAdsFullscreenActivity"
 ++    @android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
 ++</activity>
 ++(end reached)
 ]
 stdout[
 
 ]



Comment
Add comment · Show 2
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
avatar image abhijeet1001 · Sep 26, 2015 at 03:35 AM 1
Share

Ok so i deleted the Android and IOS folder from plugins folder and turn off the Unity Adds under unityservices tab and then imported Unity adds SD$$anonymous$$ from asset store and built the apk , all went fine not sure why unity screwing up when using inbuilt stuff

avatar image Emre_U · Nov 06, 2015 at 07:36 PM 0
Share

Yes I had the same problem and solved as abhijeet has done. Deleted folders, closed unityads from editor services. Import new UnityAds from store apk has been built after that. Beware you can't turn on the built in ads even after importing stuff from store. I think it makes sense... $$anonymous$$inda.

just don't forget to initialize the ads with new GameID at the start of the game. Because u are killing built in initialize, you need to do it manually.

Nonetheless it is a bug.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by pravinbudharap · Jan 20, 2017 at 08:48 AM

turn on the unity ads from service tab and remove

-- this activity from main android manifest and build the apk .. i hope it is helpful to everyone..!!!

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
avatar image
0

Answer by SavageProgrammer · Jun 19, 2021 at 11:46 AM

@pravinbudharap I am not using Unity Ads but still getting the same error any solution?

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

36 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

Related Questions

[URGENT!]Android Manifest file keeps reverting changes after build! 0 Answers

does unity 5.3 android sms billing status require configuration changes ? 0 Answers

Application late opening problem 1 Answer

Parse push notification doesn't show 0 Answers

UnityAds : Test first if have internet connection? 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