Issue Summary
I am integrating the Mapbox Navigation SDK for Android into an existing Flutter application that already uses mapbox_maps_flutter successfully for map rendering, route visualization, live vehicle tracking, stop markers, and route geometry display.
The Maps SDK integration is working correctly.
The issue occurs only when attempting to add the native Android Navigation SDK dependencies.
Environment
Flutter
Flutter 3.41.6 (stable)
Dart 3.11.4
Android
AGP 8.11.1
Kotlin 2.2.20
Java 17
Mapbox Flutter SDK
mapbox_maps_flutter: ^2.0.0
Navigation SDK Attempted
com.mapbox.navigationcore:android:3.24.3
com.mapbox.navigationcore:ui-maps:3.24.3
Also tested:
3.25.0-rc.1
android-ndk27 variants
Current Application State
The following functionality is already working:
Mapbox map rendering
Route geometry rendering
Live vehicle tracking
Route stop markers
Camera controls
Backend-provided optimized routes
Android build and deployment
The application only fails after adding Navigation SDK dependencies.
Repository Configuration
settings.gradle.kts
Mapbox Maven repository is configured in:
pluginManagement.repositories
dependencyResolutionManagement.repositories
Authentication is configured using:
credentials {
username = "mapbox"
password = providers.gradleProperty("MAPBOX_DOWNLOADS_TOKEN").get()
}
with:
authentication {
create("basic")
}
Token Configuration
gradle.properties contains:
MAPBOX_DOWNLOADS_TOKEN=
Verification:
./gradlew properties | findstr MAPBOX
returns the expected token value.
Dependencies Added
dependencies {
implementation("com.mapbox.navigationcore:android:3.24.3")
implementation("com.mapbox.navigationcore:ui-maps:3.24.3")
}
Error
Running:
flutter run
fails during Gradle dependency resolution.
Error:
Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve com.mapbox.navigationcore:android:3.24.3
Could not GET
https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigationcore/android/3.24.3/android-3.24.3.pom
Received status code 401 from server: Unauthorized
The same error occurs for:
com.mapbox.navigationcore:ui-maps:3.24.3
and also for:
3.25.0-rc.1
android-ndk27
ui-maps-ndk27
Additional Troubleshooting Performed
Confirmed Maps SDK is working correctly.
Confirmed Gradle receives the token value.
Verified repository configuration in settings.gradle.kts.
Tested both release and snapshot repository paths.
Tested multiple Navigation SDK versions.
Removed flutter_mapbox_navigation wrapper package entirely.
Attempting direct native Android Navigation SDK integration only.
Issue Summary
I am integrating the Mapbox Navigation SDK for Android into an existing Flutter application that already uses mapbox_maps_flutter successfully for map rendering, route visualization, live vehicle tracking, stop markers, and route geometry display.
The Maps SDK integration is working correctly.
The issue occurs only when attempting to add the native Android Navigation SDK dependencies.
Environment
Flutter
Flutter 3.41.6 (stable)
Dart 3.11.4
Android
AGP 8.11.1
Kotlin 2.2.20
Java 17
Mapbox Flutter SDK
mapbox_maps_flutter: ^2.0.0
Navigation SDK Attempted
com.mapbox.navigationcore:android:3.24.3
com.mapbox.navigationcore:ui-maps:3.24.3
Also tested:
3.25.0-rc.1
android-ndk27 variants
Current Application State
The following functionality is already working:
Mapbox map rendering
Route geometry rendering
Live vehicle tracking
Route stop markers
Camera controls
Backend-provided optimized routes
Android build and deployment
The application only fails after adding Navigation SDK dependencies.
Repository Configuration
settings.gradle.kts
Mapbox Maven repository is configured in:
pluginManagement.repositories
dependencyResolutionManagement.repositories
Authentication is configured using:
credentials {
username = "mapbox"
password = providers.gradleProperty("MAPBOX_DOWNLOADS_TOKEN").get()
}
with:
authentication {
create("basic")
}
Token Configuration
gradle.properties contains:
MAPBOX_DOWNLOADS_TOKEN=
Verification:
./gradlew properties | findstr MAPBOX
returns the expected token value.
Dependencies Added
dependencies {
implementation("com.mapbox.navigationcore:android:3.24.3")
implementation("com.mapbox.navigationcore:ui-maps:3.24.3")
}
Error
Running:
flutter run
fails during Gradle dependency resolution.
Error:
Execution failed for task ':app:checkDebugAarMetadata'.
Could not resolve com.mapbox.navigationcore:android:3.24.3
Could not GET
https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigationcore/android/3.24.3/android-3.24.3.pom
Received status code 401 from server: Unauthorized
The same error occurs for:
com.mapbox.navigationcore:ui-maps:3.24.3
and also for:
3.25.0-rc.1
android-ndk27
ui-maps-ndk27
Additional Troubleshooting Performed
Confirmed Maps SDK is working correctly.
Confirmed Gradle receives the token value.
Verified repository configuration in settings.gradle.kts.
Tested both release and snapshot repository paths.
Tested multiple Navigation SDK versions.
Removed flutter_mapbox_navigation wrapper package entirely.
Attempting direct native Android Navigation SDK integration only.