无法获取 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
我有一个旧的 运行 项目,在构建时显示依赖性错误。
失败:构建失败,出现异常。
- 出了什么问题:
配置项目“:app”时出现问题。
Could not resolve all dependencies for configuration ':app:_debugApk'.
A problem occurred configuring project ':react-native-mqtt-iot'.
Could not resolve all dependencies for configuration ':react-native-mqtt-iot:_debugPublishCopy'.
Could not resolve co.ibhubs.ibchat:ibchat:0.0.1.
Required by:
project :react-native-mqtt-iot
Could not resolve co.ibhubs.ibchat:ibchat:0.0.1.
Could not get resource 'https://api.bitbucket.org/1.0/repositories/mumsnbabies/maven_awsiot/raw/releases/co/ibhubs/ibchat/ibchat/0.0.1/ibchat-0.0.1.pom'.
Could not GET 'https://api.bitbucket.org/1.0/repositories/mumsnbabies/maven_awsiot/raw/releases/co/ibhubs/ibchat/ibchat/0.0.1/ibchat-0.0.1.pom'. Received status code 410 from server: Gone
Could not resolve co.ibhubs.ibchat:ibchat:0.0.1.
Could not get resource 'https://api.bitbucket.org/1.0/repositories/mumsnbabies/maven_ibchat/raw/releases/co/ibhubs/ibchat/ibchat/0.0.1/ibchat-0.0.1.pom'.
Could not GET 'https://api.bitbucket.org/1.0/repositories/mumsnbabies/maven_ibchat/raw/releases/co/ibhubs/ibchat/ibchat/0.0.1/ibchat-0.0.1.pom'. Received status code 410 from server: Gone
是因为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
更改为
到
并在url之前添加以下代码行:
authentication {
basic(BasicAuthentication)
}
我有一个旧的 运行 项目,在构建时显示依赖性错误。
失败:构建失败,出现异常。
- 出了什么问题:
配置项目“:app”时出现问题。
Could not resolve all dependencies for configuration ':app:_debugApk'. A problem occurred configuring project ':react-native-mqtt-iot'. Could not resolve all dependencies for configuration ':react-native-mqtt-iot:_debugPublishCopy'. Could not resolve co.ibhubs.ibchat:ibchat:0.0.1. Required by: project :react-native-mqtt-iot Could not resolve co.ibhubs.ibchat:ibchat:0.0.1. Could not get resource 'https://api.bitbucket.org/1.0/repositories/mumsnbabies/maven_awsiot/raw/releases/co/ibhubs/ibchat/ibchat/0.0.1/ibchat-0.0.1.pom'. Could not GET 'https://api.bitbucket.org/1.0/repositories/mumsnbabies/maven_awsiot/raw/releases/co/ibhubs/ibchat/ibchat/0.0.1/ibchat-0.0.1.pom'. Received status code 410 from server: Gone Could not resolve co.ibhubs.ibchat:ibchat:0.0.1. Could not get resource 'https://api.bitbucket.org/1.0/repositories/mumsnbabies/maven_ibchat/raw/releases/co/ibhubs/ibchat/ibchat/0.0.1/ibchat-0.0.1.pom'. Could not GET 'https://api.bitbucket.org/1.0/repositories/mumsnbabies/maven_ibchat/raw/releases/co/ibhubs/ibchat/ibchat/0.0.1/ibchat-0.0.1.pom'. Received status code 410 from server: Gone
是因为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
更改为到
并在url之前添加以下代码行:
authentication {
basic(BasicAuthentication)
}