Android Studio新建项目gradle编译错误:Conflict with dependency com.android.support:support-annotations解决办法
1.报错信息
Error:Execution failed for task ':app:preDebugAndroidTestBuild'. > Conflict with dependency 'com.android.support:support-annotations' in project ':app'. Resolved versions for app (25.3.1) and test app (27.1.1) differ. See https://d.android.com/r/tools/test-apk-dependency-conflicts.html for details.
一部分原因是因为在Android Studio3+(27+版本以上)要把compile更改为implementation
2.解决方法:点击Build->Rebuild Project