一.安装
参考博客:https://blog.csdn.net/xuw_xy/article/details/89524335
二.
第一个错误
第二个错误
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.
改正:添加代码段
configurations.all {
resolutionStrategy.force 'com.android.support:support-annotations:26.1.0'
}
再点击右上角的Sync Now -----等待。。。