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

打包成功。

相关文章:

  • 2021-09-24
  • 2021-10-07
  • 2021-08-26
  • 2021-12-02
  • 2021-11-05
  • 2022-01-14
  • 2022-01-27
  • 2022-12-23
猜你喜欢
  • 2021-06-27
  • 2021-04-05
  • 2022-12-23
  • 2022-12-23
  • 2021-06-14
  • 2022-12-23
相关资源
相似解决方案