解决这个问题再gradle(project)目录添加
ext {
supportlib_version = '26.1.0'// 版本号与已存在的一直就行。
}
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex')) {
details.useVersion "$supportlib_version"
}
}
}