I need to add Huawei Mapkit on my project in Kotlin. But when i add Dependency and pressed to sync button i am getting this error. I was implement all dependency and files but i am still getting this error. Anyone could help me?
Asked
Active
Viewed 311 times
1 Answers
0
Here is huawei map kit kotlin demo. You could try to run this demo directly.
And check if added the 'https://developer.huawei.com/repo/' in build.gradle:
repositories {
maven { url 'https://developer.huawei.com/repo/' }
google()
jcenter()
}

zhangxaochen
- 32,744
- 15
- 77
- 108
-
I checked my gradle files but its same already. You can see my repo on https://github.com/alicimsamil/MapsDirectionsExamples/tree/error. – Ali Şamil Küçük Aug 11 '21 at 08:43
-
https://github.com/HMS-Core/hms-mapkit-demo/tree/master/kotlin Did you encounter similar errors when you tried the demo code? – zhangxaochen Aug 11 '21 at 09:14
-
1I found solution. Mapkit dependency cant runing on classpath "com.android.tools.build:gradle:7.0.0" i changed to classpath "com.android.tools.build:gradle:3.5.4" and its works. – Ali Şamil Küçük Aug 11 '21 at 10:42
-
Great! feel free to contact me if you need any further help. :) – zhangxaochen Aug 12 '21 at 00:57