Can't use specific methods in Mapbox LocationEngine

China☆狼群 提交于 2019-12-12 02:28:00

问题


I was trying to set up my own navigation app, but i can't use the methods listed here: https://github.com/mapbox/mapbox-java/blob/master/mapbox/app/src/main/java/com/mapbox/services/android/testapp/nav/NavigationActivity.java

In details i'm referring at locationEngine.setInterval(0); and locationEngine.setSmallestDisplacement(3.0f); , if used Android Studio complains that they're not existing.

I've added the references to the latest mapbox-services snapshot as stated in the homepage of the github project.

What i'm missing?


回答1:


Inside the readme, the SNAPSHOT snippet is only suggesting one dependency when Mapbox Services has 7.

repositories {
    mavenCentral()
    maven { url "http://oss.sonatype.org/content/repositories/snapshots/"}
}

dependencies {
    compile 'com.mapbox.mapboxsdk:mapbox-android-ui:2.1.0-SNAPSHOT'
}

see the documentation for more details.



来源:https://stackoverflow.com/questions/43209459/cant-use-specific-methods-in-mapbox-locationengine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!