Android Studio引用第三方包报support冲突

来源:互联网 发布:windows 端口映射工具 编辑:程序博客网 时间:2024/06/10 00:48
  • 报com.android.support:appcompat-v7冲突
Error:Execution failed for task ':XXX:processDebugAndroidTestManifest'.> Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat-v7:25.3.1] AndroidManifest.xml:27:9-31    is also present at [com.android.support:support-v4:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1).    Suggestion: add 'tools:replace="android:value"' to <meta-data> element at manifestMerger4032015390560349082.xml:25:5-27:34 to override.

在包含com.android.support的第三方依赖后面加上

{    exclude group: 'com.android.support'}
  • 例如:
compile(library.wheelPicker) {    exclude group: 'com.android.support'}
阅读全文
1 0
原创粉丝点击