You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The error I am getting is the following :
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring root project 'android'.
Could not resolve all files for configuration ':classpath'. Could not find com.mapbox.mapboxsdk:mapbox-android-sdk:11.1.0. Searched in the following locations: - https://dl.google.com/dl/android/maven2/com/mapbox/mapboxsdk/mapbox-android-sdk/11.1.0/mapbox-android-sdk-11.1.0.pom - https://repo.maven.apache.org/maven2/com/mapbox/mapboxsdk/mapbox-android-sdk/11.1.0/mapbox-android-sdk-11.1.0.pom Required by: project :
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. Get more help at https://help.gradle.org/.
BUILD FAILED in 2s Exception: Gradle task assembleDebug failed with exit code 1
This is the code I have in android/build.gradle :
buildscript {
ext {
agp_version = '8.6'
}
ext.kotlin_version = '1.8.0'
repositories {
google()
mavenCentral()
}
}
allprojects {
repositories {
google()
mavenCentral()
jcenter()
maven {
url = uri("https://api.mapbox.com/downloads/v2/releases/maven")
}
And this is the code I have in android/app/build.gradle :
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'com.jakewharton.timber:timber:5.0.1'
implementation 'com.mapbox.maps:android:11.1.0'
}
If someone could help me I would be very grateful!
I have tried to find a solution in stackoverflow and other places but none of these worked for me.
Beta Was this translation helpful? Give feedback.
All reactions