您的位置:首页 > 移动开发

Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:appcompat

2017-05-15 19:59 429 查看
问题:

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

原因:Manifest中的版本和library中引用的recyclerview版本不一样,需要在gradle中将其强制转换成相同的版本。

解决办法:

在Gradle(Module:APP)中最后面加上

configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.3.0'
}
}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐