i am making navigation app using mapbox. but i am adding navigation-ui-0.30.0 dependency.it show this error (Failed to resolve: com.mapbox.navigator:mapbox-navigation-native:5.0.0)enter image description here
Asked
Active
Viewed 473 times
2 Answers
0
You have to add maven repository inside "allprojects" script in build.gradle(project level), I think you add the repository inside "buildscript". Check the following couple of line you have or not. If you have not then simply add them.
allprojects {
repositories {
google()
jcenter()
mavenCentral()
maven { url 'https://mapbox.bintray.com/mapbox' }
}
}
Now you have to add two dependencies in you gradle.build(app level)
implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation:0.32.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.32.0'
Now sync, make sure internet connection. Hope it will works fine then.

Md. Juyel Rana
- 540
- 5
- 10