无法在Mapbox LocationEngine中使用特定方法 [英] Can't use specific methods in Mapbox LocationEngine

查看:181
本文介绍了无法在Mapbox LocationEngine中使用特定方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图设置自己的导航应用程序,但无法使用此处列出的方法:

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中使用特定方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆