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