I am currently building an android navigation app and have run into an issue. The full error is:
Execution failed for task ':app:checkDebugAarMetadata'. Could not resolve all files for configuration ':app:debugRuntimeClasspath'. Could not find com.mapbox.navigator:mapbox-navigation-native:7.0.0. > Searched in the following locations: >- https://dl.google.com/dl/android/maven2/com/mapbox/navigator/mapbox-navigation-native/7.0.0/mapbox-navigation-native-7.0.0.pom > - https://jcenter.bintray.com/com/mapbox/navigator/mapbox-navigation-native/7.0.0/mapbox-navigation-native-7.0.0.pom >- https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/navigator/mapbox-navigation-native/7.0.0/mapbox-navigation-native-7.0.0.pom >Required by: >project :app > com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.42.6 > com.mapbox.mapboxsdk:mapbox-android-navigation:0.42.6
- Possible solution: Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
I am following this tutorial: https://docs.mapbox.com/help/tutorials/android-navigation-sdk/?size=n_10_n
In my app-level build.gradle file, I added this dependency:
implementation 'com.mapbox.mapboxsdk:mapbox-android-navigation-ui:0.42.6'
And in my module-level build.gradle file, under repositories, I added this:
maven { url 'https://mapbox.bintray.com/mapbox' }
So I am really not sure why it is giving me this issue. Could anyone possibly assist?