问题 :
新建AS遇到项目
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.
解决:
在app目录下的build.gradle 文件里的android{ } 里面加上下面一句
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:26.1.0'
}
问题就没了