3
Views
0
Comments
[HMS Location Plugin] HMC Location plugin Android build failed at MABS 10
hms-location-plugin
Mobile icon
Forge asset by HMS Core
Application Type
Mobile
Service Studio Version
11.54.64 (Build 63346)
Platform Version
11.18.1 (Build 37828)

HMC Location plugin Android build failed at MABS 10.

My app and HMC Location Sample app both cannot build the Android version.

Error: Command failed with exit code 1: gradle -p source/platforms/android wrapper --gradle-version 8.5

1: Task failed with an exception.
-----------
* Where:
Script 'source/platforms/android/cordova-plugin-hms-location/HMSLocationSample-build-extras.gradle' line: 45
* What went wrong:
A problem occurred configuring 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.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

==============================================================================

2: Task failed with an exception.
-----------
* Where:
Script 'source/platforms/android/cordova-plugin-hms-location/HMSLocationSample-build-extras.gradle' line: 45
* What went wrong:
Failed to query the value of property 'buildFlowServiceProperty'.

> Could not isolate value org.jetbrains.kotlin.gradle.plugin.statistics.BuildFlowService$Parameters_Decorated@2ccb0919 of type BuildFlowService.Parameters
   > A problem occurred configuring 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.

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.

==============================================================================

HMS Location SampleAndroidBuildLog (1).txt
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.