- Android dependency 'com.android.support:support-compat' has different version for the compile (26.1.0) and runtime (28.0.0) classpath. You should manually set the same version via DependencyResolution
- 分析原因:引用了不同版本的v4包造成的
- 解决方案:在project 的build.gradle用下面这个方法
subprojects {
project.configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.group == 'com.android.support'
&& !details.requested.name.contains('multidex')) {
details.useVersion '26.1.0'
}
}
}
}