Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Agconnect - API 'android.registerTransform' is removed

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.
like image 665
Mahmoud Aly Avatar asked Apr 18 '26 07:04

Mahmoud Aly


2 Answers

Finally I found the solution here..

Just add this property to gradle.properties

apmsInstrumentationEnabled=false
like image 197
Mahmoud Aly Avatar answered Apr 20 '26 22:04

Mahmoud Aly


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

like image 31
Amit Goswami Avatar answered Apr 20 '26 20:04

Amit Goswami



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!