• 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
3
Question by bbio · May 22, 2017 at 03:08 PM · androidunity 5vrandroid buildandroid-manifest

AndroidManifest-main.xml merging error

I'm trying to build a simple vr application onto a samsung s7 edge, using unity 5.6.1f1.

When I build, I get the error message "unable to merge android manifests. See the console for more details".

It seems to be a slightly different error from others who have this problem, here are the two clues I get from the console:

 C:\Users\n\Documents\VRtest3\Temp\StagingArea\AndroidManifest-main.xml:4:125-150 Error:
     Attribute application@debuggable value=(true) from AndroidManifest-main.xml:4:125-150
     is also present at AndroidManifest.xml:3:148-174 value=(false).

     Suggestion: add 'tools:replace="android:debuggable"' to <application> element at AndroidManifest-main.xml:4:3-12:17 to override.

 

 C:\Users\n\Documents\VRtest3\Temp\StagingArea\AndroidManifest-main.xml:4:16-57 Error:
     Attribute application@theme value=(@style/UnityThemeSelector) from AndroidManifest-main.xml:4:16-57 is also present at AndroidManifest.xml:3:83-147 value=(@android:style/Theme.Black.NoTitleBar.Fullscreen).

     Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest-main.xml:4:3-12:17 to override.


Thanks in advance for any info on the easiest way to solve this.

*Edit - I found a way to change the AndroidManifest.xml to solve these two errors, but I then recieve an error that "Theme.Black.NoTitleBar" cannot be found... perhaps I just don't have the correct version of the sdk/ndk/unity installed?

Comment
Add comment · Show 1
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 Juano13 · May 23, 2017 at 02:31 PM 0
Share

I have the same problem, can you comment how do you resolve it. zorry for my english

6 Replies

· Add your reply
  • Sort: 
avatar image
10

Answer by AugMac · May 25, 2017 at 02:54 PM

Hey @bbio , same issue here using unity 5.6.1f1.

Try this (worked for me):

  • Windows -> C:\Program Files\Unity\Editor\Data\PlaybackEngines\AndroidPlayer\Apk (Apple should be similar)

  • Save the original AndroidManifest.xml. (just in case)

  • Use ADM permission to edit the file and remove the lines:

      android:debuggable="true"  
      android:theme="@style/UnityThemeSelector"
    
    
  • Save it and build your app again.

Goodluck!!

P.S. My Android SDK config:

Platform -> Android-25 ( 3 )

Platform-Tools -> 25.0.6

Build-tools -> 23.0.3

Tools -> 26.0.1

Comment
Add comment · Show 5 · 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 hixiaohe · May 30, 2017 at 01:21 AM 0
Share

Thank you, it works for me!

avatar image chiranjiv · Jun 01, 2017 at 07:51 PM 0
Share

Thanks, I was having the same issue though in the error log it is suggesting to make changes in the manifest file, I did those changes but that didn't work. I went through your suggestion and it worked fine. I am using Unity 5.6.1f1 $$anonymous$$any thanks! @Aug$$anonymous$$ac

avatar image hixiaohe · Jun 02, 2017 at 07:29 AM 0
Share

Yestoday it worked, however today it does not work.

When building it will generate two Android$$anonymous$$anifests, which contain some conflicts

Loading library manifest C:\Users\kaennkyou\Documents\VuforiaGear002\Temp\StagingArea\android-libraries\gvr\Android$$anonymous$$anifest.xml Loading library manifest C:\Users\kaennkyou\Documents\VuforiaGear002\Temp\StagingArea\android-libraries\unitygvr\Android$$anonymous$$anifest.xml $$anonymous$$erging main manifest Temp\StagingArea\Android$$anonymous$$anifest-main.xml $$anonymous$$erging library manifest C:\Users\kaennkyou\Documents\VuforiaGear002\Temp\StagingArea\android-libraries\gvr\Android$$anonymous$$anifest.xml $$anonymous$$erging manifest with lower Android$$anonymous$$anifest.xml:2:1-4:12 $$anonymous$$erging uses-sdk with lower Android$$anonymous$$anifest.xml:3:5-73 C:\Users\kaennkyou\Documents\VuforiaGear002\Temp\StagingArea\Android$$anonymous$$anifest-main.xml:3:3-72 Error: uses-sdk:minSdkVersion 14 cannot be smaller than version 16 declared in library C:\Users\kaennkyou\Documents\VuforiaGear002\Temp\StagingArea\android-libraries\gvr\Android$$anonymous$$anifest.xml Suggestion: use tools:overrideLibrary="com.google.vr.cardboard" to force usage

avatar image TareqProjects · Jul 04, 2017 at 08:34 AM 1
Share

@Aug$$anonymous$$ac I have encountered this problem recently and your answer came up. $$anonymous$$ay I ask what AD$$anonymous$$ is?

avatar image yunhan0 · Jul 27, 2018 at 01:46 AM 0
Share

Thank you so much man! You saved my day.

avatar image
2

Answer by hixiaohe · Jun 03, 2017 at 11:05 AM

I fixed it by deleting Assets\Plugins\Android\AndroidManifest.xml

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 Guile_R · May 31, 2017 at 04:44 PM

worked here as well, many thanks!

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 Bentoon · Sep 07, 2017 at 05:49 PM

Hello @AugMac, @hixiaohe Still doesnt work for me, alas.

I'm 2017.1

everything else is updated & new project started / the Android Manifest file just keeps recreating itself when I delete it

still: D:\U3D\M2VR\Temp\StagingArea\AndroidManifest-main.xml:4:16-57 Error: Attribute application@theme value=(@style/UnityThemeSelector) from AndroidManifest-main.xml:4:16-57 is also present at AndroidManifest.xml:3:83-147 value=(@android:style/Theme.Black.NoTitleBar.Fullscreen). Suggestion: add 'tools:replace="android:theme"' to element at AndroidManifest-main.xml:4:3-12:17 to override.

 UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
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 ThaiSon84 · Sep 10, 2017 at 01:27 AM

I fix it (v2017.0f3)

1) just open https://developer.android.com/studio/index.html

2) scroll down to the bottom of that page

3) go to downloads

4) scroll down to the bottom of that page

5) find Windows "tools_r25.2.3-windows.zip" download and unzip it

5) find MacOSX "tools_r25.2.3-macosx.zip" download and unzip it.

6) In the SDK path replace the tools folder.

Comment
Add comment · Show 1 · 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 shacharoz · Jan 16, 2018 at 12:15 PM 0
Share

didnt find this file. can you help a little more please ?

do mean this file: https://androidsdkoffline.blogspot.co.il/p/android-sdk-tools.html

  • 1
  • 2
  • ›

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

195 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 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

Android build problem 0 Answers

Decrease the pakage size of android game 1 Answer

Need some help with Unity Airpush plugin 0 Answers

How Do You Get Google Cardboard to Read a Continuous Press? 0 Answers

Cannot merge android manifests 1 Answer

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges