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

Could not resolve com.mapbox.maps:android:10.18.4. #3745

Open
jyotykumari63 opened this issue Jan 18, 2025 · 1 comment
Open

Could not resolve com.mapbox.maps:android:10.18.4. #3745

jyotykumari63 opened this issue Jan 18, 2025 · 1 comment

Comments

@jyotykumari63
Copy link

jyotykumari63 commented Jan 18, 2025

Environment

  • Dev OS: Win10, web, Android emulator
  • @rnmapbox/maps version: "^10.1.33"
  • React Native version: "0.76.5"
  • Expo version: "~52.0.24"

Steps to reproduce

[<!--- We don't troubleshoot existing projects, please reproduce the issue in a brand new project. If you can't then create a new working project and compare with the one you're having trouble with. --->

Followed the link to setup rnmapbox.
](https://rnmapbox.github.io/docs/install?rebuild=expo#rebuild)

1." npm run android " throws below error -
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.

Could not resolve all dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve com.mapbox.maps:android:10.18.4.
Required by:
project :app
> Could not resolve com.mapbox.maps:android:10.18.4.
> Could not get resource 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/maps/android/10.18.4/android-10.18.4.pom'.
> Could not GET 'https://api.mapbox.com/downloads/v2/releases/maven/com/mapbox/maps/android/10.18.4/android-10.18.4.pom'. Received status code 403 from server: Forbidden

  • 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 1m 33s

  1. npm start and pressing "w" for web is working and showing map with rnmapbox
  2. npm start and pressing "a" for android showing error on emulator screen :
    "Error: @rnmapbox/maps native code not available. Make sure you have linked the library and rebuild your app. See https://rnmapbox.github.io/docs/install?rebuild=expo#rebuild"
    Image
@gezquinndesign
Copy link

Any joy on a workaround?

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

No branches or pull requests

2 participants