"Android" Suggestion:use tools:overridelibrary= "to force usage

Source: Internet
Author: User

Exception prompt:

When applied to the Android Studio build, the following exception was thrown:

Error:execution failed for task ': App:processdebugmanifest '.
> Manifest merger failed:uses-sdk:minsdkversion 8 cannot be smaller than version 9 declared in library [jp.wasabeef:b lurry:1.0.0]/users/xxx/xxx/app/build/intermediates/exploded-aar/jp.wasabeef/blurry/1.0.0/androidmanifest.xml
Suggestion:use tools:overridelibrary= "Jp.wasabeef.blurry" to force usage

Cause of Error:

The reason for this error is that the minimum supported version of the third-party library I introduced is higher than the minimum supported version of my project, and the information in the exception shows that the minimum supported version of my project is 8 (Android 2.2), and the minimum supported version of the third-party library is 9 (Android 2.3), so this exception is thrown.

Workaround:

Add the tags in the androidmanifest.xml file <uses-sdk tools:overrideLibrary="xxx.xxx.xxx"/> , where Xxx.xxx.xxx is the third-party library package name, and if there are multiple libraries with this exception, divide them with commas, for example: <uses-sdk tools:overrideLibrary="xxx.xxx.aaa, xxx.xxx.bbb"/> , This is done so that the minimum version limit can be ignored for androidmanifest.xml in the project and for Androidmanifest.xml merging of third-party libraries.

Reference Links:

http://blog.csdn.net/maosidiaoxian/article/details/42671999
Http://stackoverflow.com/questions/27095077/how-do-i-use-toolsoverridelibrary-in-a-build-gradle-file
http://blog.csdn.net/b275518834/article/details/45557521

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

"Android" Suggestion:use tools:overridelibrary= "to force usage

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.