1

I am trying to migrate Google Maps to Huawei Map kit. But there are no features for ClusterManager, ClusterItem, DefaultClusterRenderer e.t.c.

Now I am trying to use below this library for it:

But I do not know how to implement it. I opened Gradle window and expand Tasks under my project then double-clicked assemble but it did not extract that .aar file and gave me below error:

enter image description here

How to solve this? How to implement this library? Anyone here to implemented this successfully?

dependencies {
   implementation(name: '3rd-maps-utils-2.2.0-yyyyMMdd', ext: 'aar')
...
}
Ichigo Kurosaki
  • 3,765
  • 8
  • 41
  • 56
Aytaj
  • 67
  • 6
  • Try this lib: https://github.com/SupasinTatiyanupanwong/huawei-maps-utils For me it works fine – mohax Jan 22 '21 at 11:17

1 Answers1

1

UPDATE

1.You need refer Github to download the code.

2.Run the code, click library->Tasks->build->assemble.

3.After Run, find 3rd-maps-utils-2.1.0-yyyyMMdd.aar file in library/build/outputs/aar/ path.

4.Copy 3rd-maps-utils-2.1.0-yyyyMMdd.aar file to your own app/libs/ path.

5.Add codes below in project build.gradle file.

allprojects {
       repositories {
              ...
              flatDir {
                     dirs 'libs'
              }
       }
}

6.Add codes below in app build.gradle file.

dependencies {
    implementation(name: '3rd-maps-utils-2.1.0-yyyyMMdd', ext: 'aar')
    ...
}

You can refer this screenshoot where you can find the assemble in the upper right corner of AS by clicking "Gradle" :)

enter image description here

zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
  • Thank you for your answer again. I already did it and got an error. I updated my question now. Please, take a look – Aytaj Jan 22 '21 at 09:47
  • I updated my answer,pls kindly refer, I hope it is clear to explain like this :) – zhangxaochen Jan 22 '21 at 10:23
  • Thank you I got it. I downloaded the project from gitlab but could not build it. Getting the below error: 3rd-maps-utils-main\demo\build.gradle' line: 67 A problem occurred evaluating project ':demo'. > Plugin with id 'com.huawei.agconnect' not found. – Aytaj Jan 23 '21 at 13:59
  • Before run this demo, you need to Creating an App in AppGallery Connect to configure the project,please kindly refer this [link](https://developer.huawei.com/consumer/en/codelab/HMSPreparation/index.html#0) – zhangxaochen Jan 25 '21 at 01:18