question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RN 0.66 Could not find com.mapbox.mapboxsdk:mapbox-android-accounts:0.7.0

See original GitHub issue

Describe the bug
After upgrading React Native from 0.63.4 to 0.66 android project does not compile, showing the error:

Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
   > Could not find com.mapbox.mapboxsdk:mapbox-android-accounts:0.7.0.
     Required by:
         project :app > project :react-native-mapbox-gl_maps > com.mapbox.mapboxsdk:mapbox-android-sdk:9.1.0

Versions (please complete the following information):

  • Platform: Android
  • Dev OS: macOS 11.6
  • react-native-mapbox-gl Version 8.3.0
  • React Native Version 0.66

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

19reactions
ferdicuscommented, Oct 13, 2021

can you please try with:

android/build.gradle

repositories {
    // ...
    jcenter()
}
3reactions
ferdicuscommented, Oct 13, 2021

notice, that this is probably just a temporary workaround as jcenter as a dep repo is no longer maintained indefinitely (some time 2022 I believe). I couldn’t get it to work with mavenCentral unfortunately, although I believe, that mapbox did move their deps there 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

RN 0.66 Could not find com.mapbox.mapboxsdk ... - GitHub
Describe the bug After upgrading React Native from 0.63.4 to 0.66 android project does not compile, showing the error: Execution failed for ...
Read more >
Could not find com.mapbox.mapboxsdk:mapbox-android ...
Because I have 2 very similar projects, in one of them this solution works seamlessly, but in the other the error Could not...
Read more >
Installation | Maps SDK | Android - Mapbox docs
Install the Mapbox Maps SDK for Android using Maven.
Read more >
Migrate to v10 | Maps SDK | Android - Mapbox docs
The SDK will not automatically detect the legacy database and an application level migration is necessary to move the existing database. Below is...
Read more >
Installation | Search SDK | Android - Mapbox
Install the Mapbox Search SDK for Android using Maven.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found