Failed to resolve: com.mapbox.mapboxsdk:mapbox-android-navigation-ui:1.5.1
Kay-Hen opened this issue · 0 comments
Good day...
I keep getting this error when i add mapbox navigation ui
Failed to resolve: com.mapbox.mapboxsdk:mapbox-android-navigation-ui:1.5.1
I have also gone through my build.gradle file, attached is it
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.0.0'
classpath 'com.google.gms:google-services:4.3.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url 'https://api.mapbox.com/downloads/v2/releases/maven'
mavenCentral()
authentication {
basic(BasicAuthentication)
}
credentials {
// Do not change the username below.
// This should always be mapbox
(not your username).
username = 'mapbox'
// Use the secret token you stored in gradle.properties as the password
password = project.properties['MAPBOX_DOWNLOADS_TOKEN'] ?: ""
}
}
}
}
Dependencies
implementation ('com.mapbox.mapboxsdk:mapbox-android-sdk:9.5.0'){
exclude group: 'group_name', module: 'module_name'
}
implementation 'com.mapbox.mapboxsdk:mapbox-sdk-services:5.0.0'
implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation-ui:1.5.1'
the token has also been configured for Download:read
Can you please help me out ?