在Android Studio 创建新项目的时候,出现这个报错:
> 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.
解决方法:
android {
...
configurations.all {
resolutionStrategy.force'com.android.support:support-annotations:26.1.0'
}
}
在android{}里添加configurations.all{}