在MapBox Android SDK中找不到类“ com.mapbox.android.core.location.LocationEngineListener”

问题描述

我面临着同样的问题,加载mapview时“找不到类LocationEngineListener”运行时。

,“ com.mapBox.mapboxsdk:mapBox-android-core:3.0.0”中没有此类 所以不知道如何解决

mapBox的依赖列表实在令人沮丧,官方网站上的描述始终只是无法使事情真正起作用的小片段。

===依赖列表=====

implementation filetree(include: ['*.jar'],dir: 'libs')
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation files('libs/tencent-mapsdk-release-4.3.9.2de62165.jar')
implementation files('libs/mapBox-android-core-3.0.0-sources.jar')
implementation project(':mapBox-android-sdk-9.3.0')
implementation project(':mapBox-android-core-3.0.0')
implementation 'com.mapBox.mapboxsdk:mapBox-android-gestures:0.5.1'
implementation 'com.mapBox.mapboxsdk:mapBox-android-core:3.0.0'
implementation 'com.mapBox.mapboxsdk:mapBox-android-navigation:0.42.6'
implementation 'com.mapBox.mapboxsdk:mapBox-android-plugin-locationlayer:0.11.0'
implementation 'com.mapBox.mapboxsdk:mapBox-android-services:1.3.1'
//implementation 'com.mapBox.mapboxsdk:mapBox-android-navigation-ui:0.40.0'
implementation 'com.mapBox.mapboxsdk:mapBox-android-telemetry:4.5.1'
implementation 'com.squareup.okhttp3:okhttp:3.8.0'
implementation 'com.squareup.okio:okio:1.12.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.google.android.gms:play-services-location:17.0.0'

testImplementation 'junit:junit:4.12'
//noinspection GradleCompatible,GradleCompatible
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'

并且核心模块中没有此类:

file tree

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)