无法获取 api.bitbucket.org/1.0/存储库。在为 android 构建我的 react-native 项目时

Could not GET api.bitbucket.org/1.0/repository. when building my react-native project for android

我有一个旧的 运行 项目,在构建时显示依赖性错误。

失败:构建失败,出现异常。

是因为api版本从1.0改成2.0了吗?如果是这样如何解决?

好的,我得到了解决方案。 就我而言,我将 url 从 https://api.bitbucket.org/1.0/repositories/mumsnbabies/maven_awsiot/raw/releases/co/ibhubs/ibchat/ibchat/0.0.1/ibchat-0.0.1.pom

更改为

https://api.bitbucket.org/2.0/repositories/mumsnbabies/maven_awsiot/src/releases/co/ibhubs/ibchat/ibchat/0.0.1/ibchat-0.0.1.pom

并在url之前添加以下代码行:

authentication {
            basic(BasicAuthentication)
        }