当前位置: 首页 > 知识库问答 >
问题:

mapbox添加导航依赖项

潘俊
2023-03-14
implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.11.1'

dependencies {
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    compile 'com.android.support:support-core-utils:25.4.0'
    implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.11.1'
    implementation 'com.android.support:appcompat-v7:25.4.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.android.support:design:25.4.0'
    implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:5.5.0'
    testImplementation 'junit:junit:4.12'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
}

共有1个答案

燕禄
2023-03-14
// You Can Use This Lib. For Android Studio 3.0.1


    implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.9.0'
    implementation('com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.9.0') {
        transitive = true
    }

    implementation 'com.mapbox.mapboxsdk:mapbox-android-sdk:5.3.2'
    androidTestImplementation 'com.android.support.test:runner:1.0.1'
    androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'

    implementation('com.mapbox.mapboxsdk:mapbox-android-sdk:5.3.2@aar') {
        transitive = true

    }
 类似资料:
  • gradle应用程序文件: 使用androidx和java 1.8及gradle 2.3.1

  • 添加依赖 在 pom.xml 中引入 网聚宝监控客户端 的依赖。 <!--网聚宝 监控客户端--> <dependency> <groupId>wangjubao.monitoring</groupId> <artifactId>monitor-client</artifactId> <version>1.4-SNAPSHOT</version> </dependency>

  • 本文向大家介绍gradle 添加依赖,包括了gradle 添加依赖的使用技巧和注意事项,需要的朋友参考一下 示例 Gradle中的依赖项遵循与Maven相同的格式。依赖关系的结构如下: 这是一个例子: 要添加为编译时依赖项,只需dependency在Gradle构建文件的代码块中添加以下行: 为此的另一种语法可以显式地命名依赖项的每个组件,如下所示: 这在编译时增加了依赖性。 您也可以仅为测试添加

  • 谁能告诉我如何导入gradle for(libandroid导航用户界面),因为我正在添加模块。这个梯度是什么,我已经试过编译com了。地图框。mapboxsdk:mapbox android导航ui:0.5.0’,但没有成功。 谢谢

  • 如何将此WorldEdit依赖项添加到Maven项目中?http://maven.sk89q.com/artifactory/repo/com/sk89q/worldedit/worldedit-bukkit/我需要6.1.1快照。 是否有算法来获取组ID工件ID和版本?

  • 错误:无法初始化主类com.companyname.bank.App,原因是:java.lang.NoClassDefFoundError:org/apache/http/client/ResponseHandler 我在pom.xml文件中添加了依赖项,在/src/lib中也添加了相关的.jar文件之后,这个报告一直出现。真的很困惑,不知道怎么解决。 请帮我一把。谢谢。 以下是我的操作流程: >