HarmonyOS鸿蒙Next中gradle升级8.0以上,你们的插件就没法用都使用了最新的1.9.1.302,还是报错Failed to apply plugin 'com.huawei.agconnect',能不能长点心

HarmonyOS鸿蒙Next中gradle升级8.0以上,你们的插件就没法用都使用了最新的1.9.1.302,还是报错Failed to apply plugin ‘com.huawei.agconnect’,能不能长点心 1、setting

2.build.gradle配置:agp = “8.5.0” ,kotlin = “1.9.0”

3、app.gradle

4、报错:下面只是一个

An exception occurred applying plugin request [id: 'com.huawei.agconnect']
> Failed to apply plugin 'com.huawei.agconnect'.
     > For input string: "provider(?)"

4.2、使用 toml的

alias(libs.plugins.huawei.agconnect) apply false

更话报错:

An exception occurred applying plugin request [id: 'com.huawei.agconnect', version: '1.9.1.301', artifact: 'com.huawei.agconnect:agcp:1.9.1.301']
> Failed to apply plugin 'com.huawei.agconnect'.
     > com.android.tools.build:gradle is no set in the build.gradle file
7 回复

我也遇到这问题了,华为没人管吗?

  • What went wrong:

An exception occurred applying plugin request [id: ‘com.huawei.agconnect’]

> Failed to apply plugin ‘com.huawei.agconnect’.

> com.android.tools.build:gradle is no set in the build.gradle file

更多关于HarmonyOS鸿蒙Next中gradle升级8.0以上,你们的插件就没法用都使用了最新的1.9.1.302,还是报错Failed to apply plugin 'com.huawei.agconnect',能不能长点心的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html


agp8.3.1也遇到了这问题解决了吗?

解决了吗,

基本信息

这是深色代码主题,需要去掉

这是正常代码

void main() {
  print('Hello World');
}

agp同 8.5.2的也是报这个错误,请问一下大家这个问题解决了吗

我也碰见这个问题了,你们解决了吗

解决了吗? 我也遇到了,agp 是8.6.0

在HarmonyOS鸿蒙Next中升级Gradle到8.0以上时,可能会出现Failed to apply plugin 'com.huawei.agconnect'错误。建议您检查以下几点:

  1. 确保使用的agconnect插件版本与Gradle 8.0及以上兼容。

  2. 更新agconnect插件到最新版本。

  3. 清理Gradle缓存并重新构建项目。

  4. 检查插件依赖配置是否正确。

如果问题仍未解决,建议联系华为开发者支持团队获取进一步帮助。

回到顶部
AI 助手
你好,我是IT营的 AI 助手
您可以尝试点击下方的快捷入口开启体验!