as3.0更新时,gradle3.0插件也需要更新,记录其中部分受影响的地方。
v4包冲突
Error:Execution failed for task ':project:preDebugBuild'.
> Android dependency 'com.android.support:support-v4' has different version for the compile (23.0.0) and runtime (25.3.1) classpath.
You should manually set the same version via DependencyResolution
google play service 引用的v4包版本不是最新的,同时其他地方使用了最新的v4包,
在app/build.gradle中增加(参考github):
android {
configurations {
all {
resolutionStrategy {
// google play service use the other version of support-libs
force rootProject.ext.dependencies["support-v4"] // 最新的v4包版本
}
}
}
}