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 Disconnec7 · Apr 23, 2017 at 01:54 AM · androidbuild-errormanifest

Android Unable to merge manifest Error

Hello, when I try to build my project I get the following errors: Error: [Temp\StagingArea\AndroidManifest-main.xml:2, D:\UnityProjects\TravelChallenge\Temp\StagingArea\android-libraries\customtabs-23.4.0\AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion='15' Error: [Temp\StagingArea\AndroidManifest-main.xml:2, D:\UnityProjects\TravelChallenge\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion='15' Error: [Temp\StagingArea\AndroidManifest-main.xml:2, D:\UnityProjects\TravelChallenge\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.9.4\AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion='15'

However, I have already changed the minSDK in the Project/Plugin/Android/Manifest to version 14 but when building the project it still creates the TEMP/Manifests which have the minSDK version 15. Is there any way that I can avoid these TEMP Manifests ? Otherwise even if I edit them on every new build they are replaced with new ones that have the minSDK version 15.

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

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by liortal · Apr 23, 2017 at 06:23 AM

Background

In the final .APK package, there's only a single (1) AndroidManifest.

  • When building your project for Android, Unity uses a "main manifest" (default pre-made one, or a custom one, provided by you under Assets/Plugins/Android).

  • When adding other plugin libraries, Unity will merge all manifests together to form a single, merged manifest for the built .APK.

  • In case these manifests contain conflicting entries (in the main manifest vs. library manifests), Unity will generate an error such as the one you're getting.

The error usually contains the root cause for failure, along with the paths of the manifest file).

In your case:

[Temp\StagingArea\AndroidManifest-main.xml:2, D:\UnityProjects\TravelChallenge\Temp\StagingArea\android-libraries\customtabs-23.4.0\AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion='15' Error: [Temp\StagingArea\AndroidManifest-main.xml:2, D:\UnityProjects\TravelChallenge\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion='15' Error: [Temp\StagingArea\AndroidManifest-main.xml:2, D:\UnityProjects\TravelChallenge\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.9.4\AndroidManifest.xml:3] Main manifest has but library uses minSdkVersion='15'

This particular error message is a bit strange - the phrasing is not really that great. you can understand that the main manifest sets minSdkVersion to something, while other libraries in your project (Facebook, customtabs) set it to 15.

Solution

Set your minimal SDK version (Under Player Settings -> Other Settings) to 15. If you have a custom android manifest under Assets/Plugins/Android/AndroidManifest.xml, make sure it sets this value to 15 as well.

NOTE: in case you can't resolve the issue yourself, I offer my expertise for resolving this kind of Android build issues. More info can be found in this link.

Comment
Add comment · Show 3 · 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 Clementinethe2nd · Apr 23, 2017 at 07:04 AM 0
Share

Hello liortal how to fix my problem? http://answers.unity3d.com/questions/1344074/please-help-what-can-i-do-here.html Please help me..

avatar image liortal Clementinethe2nd · Apr 23, 2017 at 10:56 AM 0
Share

u can try contacting me in private

avatar image Clementinethe2nd liortal · Apr 23, 2017 at 12:29 PM 0
Share

NV$$anonymous$$ i already solved it thank you ill try that in a future :) if there's another problem>.<

avatar image
0

Answer by MrCrumbl3d · Apr 23, 2017 at 03:02 AM

Search all android manifest in you project and change them one by one.... this should be work...

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 Disconnec7 · Apr 23, 2017 at 03:18 AM 0
Share

Like I said in the description. It doesn't matter if I change it in the Project/Temp folder because every time you build the project they are being reset. $$anonymous$$y question is how can I avoid the creation of a TE$$anonymous$$P folder or is there anything else to do except editing the $$anonymous$$anifest file in Plugins/Android ?

avatar image Clementinethe2nd Disconnec7 · Apr 23, 2017 at 03:22 AM 0
Share

what android adk do you have already installed?

avatar image Disconnec7 · Apr 23, 2017 at 04:08 AM 0
Share

All versions from level 14 to level 25

avatar image UnityRishabh · Jan 12, 2018 at 10:21 AM 0
Share

I have exactly the same problem, please help

avatar image dixitabhi · Jun 05, 2020 at 12:47 PM 0
Share

Did anyone solve it? I'm facing the same issue

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

164 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

Related Questions

Unity 5.6.2.1f Android Build Error 0 Answers

Unable to merge Android manifests. (5.6.0p3) 2 Answers

Build Error from Android Manifest 0 Answers

help with build error 0 Answers

Unable to build Android game, build error 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