我想在包LostLocationEngine
shown in this Mapbox documentation,中使用类com.mapbox.services.android.location
,但是出现错误Cannot resolve symbol 'services'
。我的礼物有东西吗?
这是我的存储库和依赖项,如果您需要任何其他信息,请告诉我:
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:8.2.1'
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-places-v8:0.9.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0'
}
谢谢!
答案 0 :(得分:1)
将此依赖项添加到您的build.gradle
implementation 'com.mapbox.mapboxsdk:mapbox-android-plugin-locationlayer:0.11.0'
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:4.8.0'
参考链接https://docs.mapbox.com/android/plugins/overview/location-layer/