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

打包成功。

你可能感兴趣的:(Android Studio 生成apk 出现 :error_prone_annotations.jar (com.google.errorprone:error) 错误)