问题描述
我试图设置自己的导航应用程序,但无法使用此处列出的方法: https://github.com/mapbox/mapbox-java/blob/master/mapbox /app/src/main/java/com/mapbox/services/android/testapp/nav/NavigationActivity.java
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
详细地说,我指的是locationEngine.setInterval(0);
和locationEngine.setSmallestDisplacement(3.0f);
,如果使用的话,Android Studio会抱怨它们不存在.
In details i'm referring at locationEngine.setInterval(0);
and locationEngine.setSmallestDisplacement(3.0f);
, if used Android Studio complains that they're not existing.
我已经将引用添加到最新的mapbox-services快照,如github项目的首页所述.
I've added the references to the latest mapbox-services snapshot as stated in the homepage of the github project.
我想念什么?
推荐答案
在自述文件中,SNAPSHOT代码段仅建议Mapbox Services具有7个依赖项.
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.
这篇关于无法在Mapbox LocationEngine中使用特定方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!