【问题标题】:Android project build failing after bintray sunsetBintray日落后Android项目构建失败
【发布时间】:2021-07-30 15:47:30
【问题描述】:

我知道 bintray 服务已于 2021 年 5 月 1 日起停止使用,并且 bintray 存储库中的依赖项现在将不可用。不幸的是,我不得不清除 gradle 缓存,现在我面临着托管在 bintray 中的依赖项的构建错误。我怎么知道这些图书馆的替代品是什么,至少对于谷歌图书馆而言。

无法解析 com.gu.android:toolargetool:0.2.1。 > 无法获取资源“https://dl.bintray.com/guardian/android/com/gu/android/toolargetool/0.2.1/toolargetool-0.2.1.pom”。 > 无法获取“https://dl.bintray.com/guardian/android/com/gu/android/toolargetool/0.2.1/toolargetool-0.2.1.pom”。从服务器收到状态码 403:禁止

【问题讨论】:

    标签: android gradle bintray


    【解决方案1】:

    我知道 bintray 服务已于 2021 年 5 月 1 日起停止使用,并且 bintray 存储库中的依赖项现在将不可用。

    他们最近表示,他们将无限期地以只读方式保持 JCenter 开放。

    无法解析 com.gu.android:toolargetool:0.2.1

    根据the project siteaccording to mvnrepository,Maven Central 上提供了 0.3.0 版本。在您项目的顶级 build.gradle 文件中,在每个 jcenter() 行之前的一行中添加 mavenCentral(),并将您的版本从 0.2.1 升级到 0.3.0。

    我怎么知道这个库的替代品是什么,至少对于谷歌图书馆来说。

    Google 的大多数库,例如 Jetpack,都来自 Google 自己的 Maven 存储库(顶级 build.gradle 文件中的 google() 行)。

    【讨论】:

    • 是的,在评论 //maven { url "https://dl.bintray.com/riontech/maven" } 相关内容后构建成功
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-19
    • 2013-08-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多