Android Studio FAQs--Uses-sdk:minsdkversion 8 cannot is smaller than version 9 declared in library

Source: Internet
Author: User

Problem description

* What went wrong:
Execution failed for task ': App:processdebugmanifest '.
> Manifest merger failed:uses-sdk:minsdkversion 8 cannot be smaller than version 9 declared in library D:\AndroidStud Ioprojects\studiodemo\app\build\intermediates\exploded-aar\com.umeng\fb\5.1.0\androidmanifest.xml
Suggestion:use tools:overridelibrary= "COM.UMENG.FB" to force usage

Workaround

Make the following changes in the app's androidmanifest.xml:

<?XML version= "1.0" encoding= "Utf-8"?><Manifestxmlns:android= "Http://schemas.android.com/apk/res/android" xmlns:tools= "Http://schemas.android.com/tools"  Package= "Com.studio.demo">    <USES-SDKandroid:minsdkversion= "8"android:targetsdkversion= "All" tools:overridelibrary= "COM.UMENG.FB"  />    <ApplicationAndroid:allowbackup= "true"Android:icon= "@mipmap/ic_launcher"Android:label= "@string/app_name"Android:theme= "@style/apptheme"        >        <ActivityAndroid:name=". Mainactivity "Android:label= "@string/app_name" >            <Intent-filter>                <ActionAndroid:name= "Android.intent.action.MAIN" />                <categoryAndroid:name= "Android.intent.category.LAUNCHER" />            </Intent-filter>        </Activity>    </Application></Manifest>

Note two places:

1. Add:xmlns:tools= "Http://schemas.android.com/tools" on the manifest node

2. Add :tools:overridelibrary= "COM.UMENG.FB" on the USES-SDK node

Reference

Http://tools.android.com/tech-docs/new-build-system/user-guide/manifest-merger

Android Studio FAQs--Uses-sdk:minsdkversion 8 cannot is smaller than version 9 declared in library

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.