【问题标题】:Failed to resolve after bintray upload and jcenter linkbintray上传和jcenter链接后无法解决
【发布时间】:2018-02-08 04:39:03
【问题描述】:

我将一个库上传到 bintray 并获准将其与 jcenter() 链接,但是当我尝试包含依赖项时:

compile 'com.dinomitesoft.owlorbit.owlorbitsdk:owlorbit-sdk:1.0.0'

它说“无法解决”。这是我的存储库目前的样子:

repositories {
    jcenter()
}

如果我包含 bintray 存储库,它可以很好地编译,例如:

repositories {
    maven {
        url 'https://dl.bintray.com/owlorbit-llc/Owlorbit/'
    }
}

我做错了什么?我需要设置 Sonatype 帐户吗?

这里是 bintray 项目的链接: https://bintray.com/owlorbit-llc/Owlorbit/Owlorbit_SDK

它说它链接到 JCenter:

【问题讨论】:

  • 它在 bintray 中,但未与 jcenter 同步。检查jcenter.bintray.com/com/dinomitesoft/owlorbit/owlorbitsdk 如果您是图书馆的所有者,Bintray 上有一个“添加到 Jcenter”按钮
  • @GabrieleMariotti 我将它与 jcenter 相关联。它得到了批准。还是有另一个按钮..?

标签: gradle bintray jcenter


【解决方案1】:

在我向他们发送支持票后,Bintray 解决了这个问题!

【讨论】:

  • 我仍然遇到同样的问题。我通过单击“添加到 jcenter”按钮将我的 bintray 库存储库链接到 jcenter。我还收到消息说“您将包 包含在 Bintray 的 JCenter 中的请求已获批准。”但它仍然显示无法解决错误(在 jecnter 的情况下),如果我在 gradle 中添加我的 bintray repo url,它会编译。
  • @TechHelper 请检查 bintray-name、artifact id 和包名,如果不是唯一的,请提供相同的名称并检查,bintray 支持团队给了我这个密钥
  • 非常感谢大家的帮助。现在我已经在 Github (github.com/TechHelper) 和 bintray (jcenter) 上成功发布了我的 2 个库。该问题与正确声明 bintray 凭据有关。
猜你喜欢
  • 2019-03-01
  • 2017-05-04
  • 1970-01-01
  • 2017-06-16
  • 2020-06-26
  • 1970-01-01
  • 2017-11-06
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多