【问题标题】:How to avoid jcenter error or replace it when jcenter shutdown today今天 jcenter 关闭时如何避免 jcenter 错误或更换它
【发布时间】:2022-10-31 13:52:27
【问题描述】:
Execution failed for task ':app:dataBindingMergeDependencyArtifactsDebug'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not resolve com.applovin:applovin-sdk:+.
     Required by:
         project :app > prox-lib:prox-utils-max-saleoff:2.3.5
      > Failed to list versions for com.applovin:applovin-sdk.
         > Unable to load Maven meta-data from https://jcenter.bintray.com/com/applovin/applovin-sdk/maven-metadata.xml.
            > Could not HEAD 'https://jcenter.bintray.com/com/applovin/applovin-sdk/maven-metadata.xml'. Received status code 502 from server: Bad Gateway

好像 jcenter 今天停止工作了。上周五,我的项目仍然运行良好,直到今天。

我跑./gradlew build --warning-mode all并得到这个错误。

有谁知道 jcenter 何时会再次工作或如何避免 jcenter 错误?

(我尝试使用 mavenCentral() 但仍然无法正常工作)

【问题讨论】:

    标签: android maven bintray jcenter maven-central


    【解决方案1】:

    作为临时措施,您可以使用镜像站点

    allprojects {
        repositories {
            // Jcenter mirror
            maven { url "https://maven.aliyun.com/repository/jcenter" }
            // other repo
        }
    }
    
    

    【讨论】:

    • 似乎对我不起作用。我仍然收到此错误“无法解析:com.dmcBig:mediapicker:+”
    猜你喜欢
    • 1970-01-01
    • 2016-10-28
    • 2017-05-10
    • 2019-08-12
    • 2015-08-17
    • 2018-06-07
    • 2018-10-15
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多