一
Error:Execution failed for task ':app:preDebugAndroidTestBuild'.
> Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (26.1.0) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
已解决
https://blog.csdn.net/sinat_18497785/article/details/51484140
有两种办法
1
添加测试依赖
androidTestImplementation 'com.android.support:support-annotations:26.1.0'
2强制指定依赖库
在dependencies中添加
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:26.1.0'
}