赞
踩
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.
是因为华为的gradle插件有问题:
在项目的 gradle.properties下
添加 apmsInstrumentationEnabled=false
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。