【发布时间】:2021-12-17 08:39:23
【问题描述】:
关注agc-get-started-android 并拥有
项目级 build.gradle:
buildscript {
repositories {
google()
mavenCentral()
maven {url 'https://developer.huawei.com/repo/'}
}
dependencies {
classpath "com.android.tools.build:gradle:7.0.3"
classpath 'com.huawei.agconnect:agcp:1.6.0.300'
}
}
应用模块 build.gradle:
plugins {
id 'com.android.application'
id 'com.huawei.agconnect'
}
...
dependencies {
...
implementation 'com.huawei.hms:location:6.0.0.302'
}
Gradle 构建以以下错误结束:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.huawei.hms:location:6.0.0.302.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/huawei/hms/location/6.0.0.302/location-6.0.0.302.pom
- https://repo.maven.apache.org/maven2/com/huawei/hms/location/6.0.0.302/location-6.0.0.302.pom
- https://jcenter.bintray.com/com/huawei/hms/location/6.0.0.302/location-6.0.0.302.pom
Required by:
project :app
我的问题有什么解决方案?
【问题讨论】:
标签: android android-studio maven gradle huawei-mobile-services