Plugin [id: 'com.huawei.agconnect'] was not found in any of the following sources: HarmonyOS鸿蒙Next
Plugin [id: ‘com.huawei.agconnect’] was not found in any of the following sources: HarmonyOS鸿蒙Next
无法下载插件 settings.gradle.kts中已经配置了镜像
依赖已经下载下来但是插件没法下载下拉
gradle 8.3.2 这是我的settings配置
pluginManagement {
repositories {
maven { setUrl("https://developer.huawei.com/repo/") }
google {
content {
includeGroupByRegex("com\\.android.*")
includeGroupByRegex("com\\.google.*")
includeGroupByRegex("androidx.*")
}
}
mavenCentral()
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
maven { setUrl("https://developer.huawei.com/repo/") }
google()
mavenCentral()
}
}
rootProject.name = "HuaWeiCrashDemo"
include(":app")
更多关于Plugin [id: 'com.huawei.agconnect'] was not found in any of the following sources: HarmonyOS鸿蒙Next的实战教程也可以访问 https://www.itying.com/category-93-b0.html
1 回复
更多关于Plugin [id: 'com.huawei.agconnect'] was not found in any of the following sources: HarmonyOS鸿蒙Next的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
这个错误提示表明在构建项目中找不到com.huawei.agconnect
插件。可能的原因包括:
- 插件未正确配置:确保在
build.gradle
文件中正确添加了agconnect
插件的依赖。 - 仓库未添加:检查是否在
build.gradle
中添加了华为的Maven仓库。 - 插件版本不匹配:确认插件版本与项目其他依赖兼容。
建议检查并更新build.gradle
文件,确保所有配置正确无误。