billtom20 / hms-maps-utils

Maps SDK for Android Utility Library (Based on HMS Core)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot build this project

AytajD opened this issue · comments

I am trying to implement this project and I downloaded it to my desktop. But I could not build project because there is an error on 3rd-maps-utils-main\demo\build.gradle' line: 67.
It says:
A problem occurred evaluating project ':demo'.

Plugin with id 'com.huawei.agconnect' not found.

Anyone with this problem and solved it??

I was facing the same problem but just solved it. You need to:

  1. Remove or comment out the line include 'demo' from "settings.gradle".
  2. Synchronize the gradle files.
  3. Click the upper right Gradle, and then the elephant icon to see options, then select library module and then run gradle assemble on library module.
  4. Find the .aar file in library > build > outputs > aar on the left from Project view.
  5. Copy the .aar file to your libs folder.
  6. Add the following line to your build.gradle (app) module -> implementation(name: '3rd-maps-utils-2.2.0-yyyyMMdd', ext: 'aar')