Search code examples
mapboxmapbox-android

Mapbox Navigation ui


Can anyone please let me know how can i import the gradle for (libandroid-navigation-ui), as I am facing in adding the module. What is the gradle for this, I already tried compile 'com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.5.0' but no success.

Thanks


Solution

  • Add these in your build.gradle

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

    and compile this :

    compile 'com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.6.0-SNAPSHOT@aar'