Android解决冲突
时间:2019-11-12 17:20:26
收藏:0
阅读:610
1、在app的build.gradle中的defaultConfig节点中配置configurations.all
android{
...
defaultConfig {
configurations.all {
resolutionStrategy {
failOnVersionConflict()
}
}
}
...
}
2、执行gradle build或者gradle assembleRelease等,会发现提示:

3、在defaultConfig节点中配置
android{
...
defaultConfig {
configurations.all {
resolutionStrategy {
force ‘com.google.code.findbugs:jsr305:3.0.2‘
failOnVersionConflict()
}
}
}
...
}
即可。
原文:https://www.cnblogs.com/weizhxa/p/11842901.html
评论(0)