当前位置:   article > 正文

Android Studio Flamingo | 2022.2.1 Patch 1 升级问题_failed to apply plugin 'com.huawei.agconnect'.

failed to apply plugin 'com.huawei.agconnect'.

Android Studio Flamingo | 2022.2.1 Patch 1 升级会出现的问题:

Gradle 8.0 :
使用华为通知等华为插件的会出现这个错误:

Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin 'com.huawei.agconnect'.

Caused by: com.android.builder.errors.EvalIssueException: API 'android.registerTransform' is removed.

To determine what is calling android.registerTransform, use -Pandroid.debug.obsoleteApi=true on the command line to display more information.


  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

是因为华为的gradle插件有问题:
在这里插入图片描述
在项目的 gradle.properties下
添加 apmsInstrumentationEnabled=false

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/菜鸟追梦旅行/article/detail/288505
推荐阅读
相关标签
  

闽ICP备14008679号