Error:Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (27.0.2) and test app (27.1.1) differ. See https://d.android.com/r/tools/tes
依赖包冲突
方法1:
dependencies {
androidTestCompile('com.android.support:support-annotations:27.0.2') {
force = true
}
...
}
方法2:
//android 节点下添加 强制使用某个版本
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:26.1.0'
}