解决冲突
1.exclude
implementation('com.zhy:autolayout:1.4.5') {
exclude group: 'com.android.support'
}
2.buildtoolversion,complie_sdk_version,target_sdk_version要超过v4,v7等包的版本
3.使用下列代码块将全部support包版本调整一致
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == 'com.android.support') {
if (!requested.name.startsWith("multidex")) {
details.useVersion '25.0.0'
}
}
}
4.provided 编译时加入,打包时不加入