Android Studio 生成apk 出现 :error_prone_annotations.jar (com.google.errorprone:error) 错误

Android Studio 生成apk错误:

Could not download error_prone_annotations.jar (com.google.errorprone:error)

修改项目下build.gradle文件中的buildscriptallprojects,如下:

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' }

打包成功。

posted @ 2020-07-30 11:46  大空白纸  阅读(1540)  评论(0编辑  收藏  举报