Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jcenter repository required for mapbox-android-accounts:0.7.0 and mapbox-sdk-turf:5.3.0 #92

Closed
thezealousfool opened this issue Jun 3, 2021 · 4 comments

Comments

@thezealousfool
Copy link

Hello.

I am trying to setup MapLibre for my android app. Without jcenter I get the following errors

Execution failed for task ':app:mergeDebugNativeLibs'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.mapbox.mapboxsdk:mapbox-android-accounts:0.7.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/mapbox/mapboxsdk/mapbox-android-accounts/0.7.0/mapbox-android-accounts-0.7.0.pom
       - https://repo.maven.apache.org/maven2/com/mapbox/mapboxsdk/mapbox-android-accounts/0.7.0/mapbox-android-accounts-0.7.0.pom
     Required by:
         project :app > org.maplibre.gl:android-sdk:9.4.0
   > Could not find com.mapbox.mapboxsdk:mapbox-sdk-turf:5.3.0.
     Searched in the following locations:
       - https://dl.google.com/dl/android/maven2/com/mapbox/mapboxsdk/mapbox-sdk-turf/5.3.0/mapbox-sdk-turf-5.3.0.pom
       - https://repo.maven.apache.org/maven2/com/mapbox/mapboxsdk/mapbox-sdk-turf/5.3.0/mapbox-sdk-turf-5.3.0.pom
     Required by:
         project :app > org.maplibre.gl:android-sdk:9.4.0

The installation section for Maplibre says that it requires mavenCentral which gives the impression that the library only requires mavenCentral only and not jcenter which is not true as far as I can tell. I would suggest adding jcenter to the installation steps.

I have the following in my build.gradle.kts at the root of the project

buildscript {
    val compose_version by extra("1.0.0-beta07")
    repositories {
        google()
        mavenCentral()
    }
    dependencies {
        classpath("com.android.tools.build:gradle:7.0.0-beta03")
        classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.10")
        classpath("com.google.dagger:hilt-android-gradle-plugin:2.36")
    }
}

and in module app, build.gradle.kts looks like

...
dependencies {
    ...
    implementation("org.maplibre.gl:android-sdk:9.4.0")
    ...
}
@carlonzo
Copy link
Collaborator

I guess the answer is here? #27 (comment)

TLDR: waiting for #90 to be merged

@carlonzo
Copy link
Collaborator

closed by #90

@Sayum24
Copy link

Sayum24 commented Nov 22, 2021

Still getting this error in my Android Project.

Could not find com.mapbox.mapboxsdk:mapbox-android-accounts:0.7.0.
Required by:
    project :app > org.maplibre.gl:android-sdk:9.4.0```

@Sayum24
Copy link

Sayum24 commented Nov 22, 2021

Fixed. I didn't have the newest version.
Version 9.5.1 works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants