• 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
4
Question by Octavic · Dec 09, 2016 at 02:57 PM · androidcoroutinegoogle

Android Unable to merge android manifest Error

I created an empty project and imported the google library for CardBoard VR, then when I try to build I get this error:

 CommandInvokationFailure: Unable to merge android manifests. See the Console for more details. 
 C:/Program Files/Java/jdk1.8.0_111\bin\java.exe -Xmx2048M -Dcom.android.sdkmanager.toolsdir="C:/Users/Yifei/AppData/Local/Android/sdk\tools" -Dfile.encoding=UTF8 -jar "D:\Programs\Unity2\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\sdktools.jar" -
 
 stderr[
 
 ]
 mp\StagingArea\AndroidManifest-main.xml:18, E:\Programming\Unity\CardBoardTest2\Temp\StagingArea\android-libraries\gvr-permissionsupport-release\AndroidManifest.xml:3] Main manifest has <uses-sdk android:targetSdkVersion='23'> but library uses targetSdkVersion='24'
 ]
 exit code: 1
 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()

I'm using 5.5.0f3 and the newest Google SDK for CardBoard. I have also updated my Android to API 23, but the problem persists

Comment
Add comment · Show 6
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 irlab · Dec 23, 2016 at 11:01 PM 1
Share

ps I also stepped back to GVR 1.0 and was able to build. You can get GVR 1.0 here:

https://github.com/googlevr/gvr-unity-sdk/releases

avatar image JulianFiol irlab · Dec 23, 2016 at 11:19 PM 0
Share

thx ! i'll try with this one :)

avatar image irlab JulianFiol · Dec 25, 2016 at 06:31 PM 0
Share

Actually, it fixed the not-being-able-to-build problem; however, the android app that i built doesn't run at all on my Nexus 5x; crashes immediately.

So back to the drawing board, still need a way to build properly with the latest GVR libs and Unity 5.5.

Anyone succeeding?

Show more comments
avatar image yoyo696 · Dec 29, 2016 at 09:10 PM 0
Share

$$anonymous$$e too HAVE THE SA$$anonymous$$E PROBLE$$anonymous$$.

avatar image Kubic75 · Jan 08, 2017 at 09:34 AM 0
Share

Same problem. I have installed latest Google SD$$anonymous$$ (Level25) but the highest available in Unity here is Level22. Why?

9 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by iamirishnavarro · Feb 01, 2017 at 05:22 PM

This is my same problem, I'm glad to see this post and now my problem is solve. I've tried changing my

 <uses-sdk android:minSdkVersion="19" **android:targetSdkVersion=**"24"**** 

THANK YOU EVERYONE!!!!!!! ♥ No need to degrade gvr version. Set SDK version what you want in the build --> player settings --> inspector --> TARRGET SDK version to what you want. Just keep in mind that if you choose the lower versions, change the android:minSdkVersion="__" to the lower version that what you want is so it has allowance then change the android:targetSdkVersion="24". That's it!

Btw, I am using Unity 5.4.3f1 and I have created a mobile virtual reality app for a tourist destination ^_^ PS. I haven't tried it in my phone, I'll update you when I do it. Salamat! Mabuhay!

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 dewong4 · Mar 15, 2017 at 04:36 PM

This is a comment in case your Android phone can't be upgraded. My AT&T Samsung Note Edge is not getting updates anymore, so I am stuck with Android 5.1 (level 22). I get the "unable to merge android manifest errors" after the upgrade to GVR 1.30, since it requires Android 7.0 (level 24). The combination that works for me is GVR 1.20 and Unity 5.5.1f1, for Cardboard.

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 unity_s_uRTmg4Kx61_A · Oct 03, 2017 at 10:56 AM

This may be coming late, but you can help other people out there with problem of two plugin conflicting in Androidmanifest.xml in unity project. You can check my answer to this thread, i was able to solve mine.

http://answers.unity3d.com/questions/735848/how-to-merge-multiple-androidmanifestxml-files.html?childToView=1415388#answer-1415388

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 ahmedaniss · May 05, 2021 at 12:20 PM

Problem fixed here : https://youtu.be/c6Zbqm5Fys8

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
  • ‹
  • 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

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

148 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

Related Questions

Open Google Maps with address in Unity 1 Answer

Unity 2017 and GVR Video Player broken ? 1 Answer

Firebase CheckDependencies Error for Andorid (VR) 0 Answers

How do I to implement OAuth 2.0 and Google Fit Api? 0 Answers

Android Device Monitor Application Column Displays Question mark instead of package name 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