报错截图:

安卓 android studio 报错 Unknown host 'jcenter.bintray.com'. You may need to adjust the proxy settings in Gradle.

问题原因:因为build.gradle中jcenter()或者maven()被墙了,所以会出现这种情况。

解决方案:(我的gradle版本是:classpath 'com.android.tools.build:gradle:3.2.1')

在Project的build.gradle加入以下代码,需将maven{}写在jcenter()之前,确保先访问maven()里面的连接。

maven {
          url 'http://maven.aliyun.com/nexus/content/groups/public/'
      }

解决截图:

安卓 android studio 报错 Unknown host 'jcenter.bintray.com'. You may need to adjust the proxy settings in Gradle.

 

相关文章:

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