异常解决Suggestion: use tools:overrideLibrary="" to force usage
来源:互联网 发布:软件买卖合同模板 编辑:程序博客网 时间:2024/05/21 06:57
AS中导入第三方包出现:
Error:Execution failed for task ':LibPingppOne:processDebugAndroidTestManifest'.> java.lang.RuntimeException: Manifest merger failed : uses-sdk:minSdkVersion 1 cannot be smaller than version 15 declared in library [XieStar:BaiduWalletRefactorLib:unspecified] F:\GitHub\XieStar\LibPingppOne\build\intermediates\exploded-aar\XieStar\BaiduWalletRefactorLib\unspecified\AndroidManifest.xmlSuggestion: use tools:overrideLibrary="com.baidu.paysdk.lib" 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合并时可以忽略最低版本限制。
0 0
- 异常解决Suggestion: use tools:overrideLibrary="" to force usage
- 如何解决Suggestion: use tools:overrideLibrary="" to force usage
- 【Android】Suggestion: use tools:overrideLibrary="" to force usage
- 【Android】Suggestion: use tools:overrideLibrary="" to force usage
- 【Android】Suggestion: use tools:overrideLibrary="" to force usage
- 【Android】Suggestion: use tools:overrideLibrary="" to force usage
- [Android] Suggestion: use tools:overrideLibrary="" to force usage
- android错误之Suggestion: use tools:overrideLibrary="com.xys.libzxing" to force usage
- Android Studio编译错误:Suggestion: use tools:overrideLibrary="xxx.xxx.xxx" to force usage
- Suggestion: use tools:overrideLibrary="com.example.xrecyclerview" to force usage
- Suggestion: use tools:overrideLibrary="android.support.v17.leanback" to force usage
- Suggestion: use tools:overrideLibrary="android.support.v4" to force usage
- Suggestion: use tools:overrideLibrary="xxx.xxx.xxx" to force usage的解决办法
- Suggestion: use tools:overrideLibrary="xxx.xxx.xxx" to force usage
- [android]错误:Suggestion: use tools:overrideLibrary="" to force
- 错误use tools:overrideLibrary="com.myworkframe.activity" to force usage
- use tools:overrideLibrary="xxx.xxx.xxxr" to force usage 问题分析。
- android中的版本低于运用库定义版本Suggestion: use tools:overrideLibrary="com.github.mikephil.charting.data.realm"
- Spring Web MVC详解
- SpannableString属性
- 12、Extjs添加悬浮框
- 【Egret】 2D 使用中的一些疑难解决技巧!
- Fragment解析
- 异常解决Suggestion: use tools:overrideLibrary="" to force usage
- makefile 进阶--可以用于实际嵌入式工程中的文件编写1
- 单例模式的五种写法
- android中创建水平和竖直虚线。
- 第六章 类文件结构
- Android显示系统框架原理介绍
- 构造函数中无法实现多态
- shell--读取文件
- 该如何旋转EDIUS 8中的图片