Could not HEAD 'https://dl.bintray.com/umsdk/release/cn/rongcloud/sdk/im_lib/4.0.3.15/im_lib-4.0.3.15.pom'. Received status code 403 from server: Forbidden
Disable Gradle 'offline mode' and sync project
问题产生的原因是 第三方库的meven仓库变了
解决方案替换仓库地址
allprojects {
repositories {
google()
jcenter()
mavenLocal()
maven {
// All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
url("$rootDir/../node_modules/react-native/android")
}
maven {
// Android JSC is installed from npm
url("$rootDir/../node_modules/jsc-android/dist")
}
//
maven { url 'https://maven.aliyun.com/repository/google' }
maven { url 'https://maven.aliyun.com/repository/jcenter' }
maven { url "https://jitpack.io" }
maven { url 'https://dl.bintray.com/umsdk/release' } //友盟依赖
//https://maven.rongcloud.cn/repository/maven-releases/
maven {url "https://dl.bintray.com/rongcloud/maven"} //这个已经不存在了融云依赖
// maven {url "https://maven.rongcloud.cn/repository/maven-releases/"} //新的融云meven仓库地址
maven {url "http://kochava.bintray.com/maven"} //kochava依赖
// maven { url "http://nexus2.tingyun.com/nexus/content/repositories/snapshots/" } //听云依赖
// maven {
// url 'https://maven.google.com/'
// name 'Google'
// }
}
}