报错提示:
Android dependency ‘com.android.support:appcompat-v7’ has different version for the compile (25.3.1) and runtime (28.0.0) classpath. You should manually set the same version via DependencyResolution
处理方式:
android {
...
}
//在app的build.gradle中添加以下代码
project.configurations.all{
resolutionStrategy.eachDependency{details->
if(details.requested.group=='com.android.support'
&& !details.requested.name.contains('multidex')){
details.useVersion"28.0.0"
}
}
}
dependencies {
...
}