Issue
need help how to fix problem of HMS SDK.
> Could not get resource
> 'https://dl.bintray.com/android/android-tools/com/huawei/agconnect/agcp/1.6.0.300/agcp-1.6.0.300.pom'.
> > Could not GET 'https://dl.bintray.com/android/android-tools/com/huawei/agconnect/agcp/1.6.0.300/agcp-1.6.0.300.pom'.
> Received status code 502 from server: Bad Gateway
build.gradle:
repositories {
google()
jcenter()
maven { url 'https://dl.bintray.com/android/android-tools' }
maven {url 'https://developer.huawei.com/repo/'}
}
Solution
Received status code 502 from server: Bad Gateway
This may be because the gradle is in offline mode or the current network is limited. Therefore, you are advised to check the gradle configuration and network settings.
buildscript {
repositories {
google()
jcenter()
// Configure the Maven repository address for the HMS Core SDK.
maven {url 'https://developer.huawei.com/repo/'}
}
dependencies {
...
// Add the AppGallery Connect plugin configuration. You are advised to use the latest plugin version.
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
}
}
allprojects {
repositories {
google()
jcenter()
// Configure the Maven repository address for the HMS Core SDK.
maven {url 'https://developer.huawei.com/repo/'}
}
}
For details about how to configure the build.gradle file, kindly refer to this.
Answered By - shirley
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.