Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
452 views
in Technique[技术] by (71.8m points)

Using Google's maps sdk android utility library in Huawei Map Kit

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')
...
}
question from:https://stackoverflow.com/questions/65842517/using-googles-maps-sdk-android-utility-library-in-huawei-map-kit

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...