参考链接:https://www.jianshu.com/p/a274e17fc66a?winzoom=1
Android Studio 生成apk错误:
Could not download error_prone_annotations.jar (com.google.errorprone:error)
修改项目下build.gradle文件中的buildscript和allprojects,如下:
google()
jcenter()
为
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }