After migrating to gradle 8.x, I can't build the app because the latest Huawei AppGallery dependency com.huawei.agconnect:agcp:1.9.0.300 still not compatible with gradle 8.
So is there any solutions other than reverting to gradle 7 ?
A problem occurred evaluating project ':app'.
> Failed to apply plugin 'com.huawei.agconnect'.
> API 'android.registerTransform' is removed.
For more information, see https://developer.android.com/studio/releases/gradle-plugin-api-updates#transform-api.
To determine what is calling android.registerTransform, use -Pandroid.debug.obsoleteApi=true on the command line to display more information.
Finally I found the solution here..
Just add this property to gradle.properties
apmsInstrumentationEnabled=false
Please Update the AGConnect plugin to letest. Huawei has updated To 8.0+
Version 1.9.1.300, released on 2023-07-04
https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-sdk-changenotes-0000001058732550#section1850181717218
Screen shot of release notes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With