错误信息:

Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://jcenter.bintray.com/org/xxx.jar'.

 

AndroidStudio 编译失败;Caused by: org.gradle.api.resources.ResourceException: Could not get resource..

 

修改方法如下:

1. 打开项目文件: build.gradle 

2. 把原有build配置

allprojects {

    repositories {

        jcenter()

        google()

    }

}

改为

allprojects {

    repositories {

        //新加

        mavenCentral()

        jcenter()

        //新加

        mavenLocal()

        google()

    }

}

 

3. 右键文件 build.gradle   重新执行

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-30
  • 2021-07-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-05-23
  • 2021-06-14
  • 2022-01-01
  • 2022-12-23
  • 2022-12-23
  • 2021-04-27
  • 2021-06-23
相关资源
相似解决方案