https://docs.mapbox.com/android/maps/guides/install/
Я успешно запросил оба токена и добавил зависимость в build.gradle.
Код: Выделить всё
dependencies {
implementation ("com.mapbox.maps:android:10.1.0")
}
Код: Выделить всё
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven (){
url 'https://api.mapbox.com/downloads/v2/releases/maven'
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 = MAPBOX_DOWNLOADS_TOKEN
}
}
}
}
- Неожиданные токены ( используйте ';' для разделения выражений в одной строке)
- Неразрешенная ссылка: базовая
Подробнее здесь: https://stackoverflow.com/questions/768 ... io-project
Мобильная версия