关闭

【Android】Suggestion: use tools:overrideLibrary="" to force usage

207人阅读 评论(0) 收藏 举报
分类:

转:http://blog.csdn.net/zhufuing/article/details/48018147


异常提示:

应用在Android Studio Build的时候,抛出了如下异常:

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:blurry: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

错误原因:

出现这个错误的原因是我引入的第三方库最低支持版本高于我的项目的最低支持版本,异常中的信息显示:我的项目的最低支持版本为8(Android 2.2),而第三方库的最低支持版本为9(Android 2.3),所以抛出了这个异常。

解决办法:

在AndroidManifest.xml文件中 标签中添加<uses-sdk tools:overrideLibrary="xxx.xxx.xxx"/>,其中的xxx.xxx.xxx为第三方库包名,如果存在多个库有此异常,则用逗号分割它们,例如:<uses-sdk tools:overrideLibrary="xxx.xxx.aaa, xxx.xxx.bbb"/>,这样做是为了项目中的AndroidManifest.xml和第三方库的AndroidManifest.xml合并时可以忽略最低版本限制。

参考链接:

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


0
0
查看评论

Android新手错误(一)

manifests目录存放清单文件,不必多说。 java目录会默认生成三个文件夹,其中test为在本机执行单元测试代码的目录, androidTest为在Android设备上执行单元测试代码的目录,第一个不带后缀的目录就是存放我们代码的目录。 res目录存放资源文件,包括图片资源文件、layout布...
  • Madkson
  • Madkson
  • 2016-08-11 08:44
  • 1053

Android Studio编译错误:Suggestion: use tools:overrideLibrary="xxx.xxx.xxx" to force usage

Suggestion: use tools:overrideLibrary="xxx.xxx.xxx" to force usage
  • jeek_job
  • jeek_job
  • 2016-08-24 15:54
  • 3251

android错误之Suggestion: use tools:overrideLibrary="com.xys.libzxing" to force usage

导入Zxing包时编译时会出现如此提示:                  解决办法:   ...
  • yayun0516
  • yayun0516
  • 2016-08-13 20:56
  • 2343

【Android】Suggestion: use tools:overrideLibrary="" to force usage

异常提示:应用在Android Studio Build的时候,抛出了如下异常: Error:Execution failed for task ‘:app:processDebugManifest’. > Manifest merger failed : Suggestion: ...
  • zhufuing
  • zhufuing
  • 2015-08-27 14:26
  • 26517

android中的版本低于运用库定义版本Suggestion: use tools:overrideLibrary="com.github.mikephil.charting.data.realm"

Error:Execution failed for task ':MPChartExample:processDebugManifest'. > Manifest merger failed : uses-sdk:minSdkVersion 13 cannot be sma...
  • pochenpiji159
  • pochenpiji159
  • 2016-08-14 03:46
  • 793

Suggestion: use tools:overrideLibrary="android.support.v17.leanback" to force usage

Suggestion: use tools:overrideLibrary="android.support.v17.leanback" to force usage Android Studio下修改方法: 在manifest中添加,不要忘了也要包含xm...
  • dangjunqiang
  • dangjunqiang
  • 2017-01-25 16:14
  • 703

如何解决Suggestion: use tools:overrideLibrary="" to force usage

应用在Android Studio Build的时候,抛出了如下异常: Error:Execution failed for task ':app:processInternalDebugManifest'. > Manifest merger failed :...
  • luo451591667
  • luo451591667
  • 2016-08-04 10:34
  • 1551

异常解决Suggestion: use tools:overrideLibrary="" to force usage

AS中导入第三方包出现: Error:Execution failed for task ':LibPingppOne:processDebugAndroidTestManifest'. > java.lang.RuntimeException: Manifest merge...
  • u012721933
  • u012721933
  • 2016-03-23 10:56
  • 1242

错误use tools:overrideLibrary="com.myworkframe.activity" to force usage

在用AndroidStudio构建项目的时候报了一堆错 Error:Execution failed for task ':app:processDebugManifest'. > Manifest merger failed : uses-sdk:minSdkVersion...
  • qq_34475058
  • qq_34475058
  • 2016-07-13 10:44
  • 1286

[Android] Suggestion: use tools:overrideLibrary="" to force usage

0x00 应用在Android Studio Build的时候,抛出了如下异常:Error:Execution failed for task ‘:app:processDebugManifest’. > Manifest merger failed : uses-sdk:minSdkVe...
  • tujidi1csd
  • tujidi1csd
  • 2017-03-17 16:53
  • 255