react-native-mapbox-navigation icon indicating copy to clipboard operation
react-native-mapbox-navigation copied to clipboard

Trying to install, pods dependencies not working

Open salvinoto opened this issue 1 year ago • 3 comments

Hi, I hope this will get seen, I'm trying to use this in a project of mine, and I get this error when Installing pods. Is there a way I can force or manually update MapCommon on this project so I can use it? Thanks.

[!] CocoaPods could not find compatible versions for pod "MapboxCommon": In snapshot (Podfile.lock): MapboxCommon (= 23.8.3, ~> 23.8)

In Podfile: react-native-mapbox-navigation (from ../node_modules/@sqware/react-native-mapbox-navigation) was resolved to 2.0.0, which depends on MapboxNavigation (~> 2.1.0) was resolved to 2.1.1, which depends on MapboxCoreNavigation (= 2.1.1) was resolved to 2.1.1, which depends on MapboxNavigationNative (~> 80.0) was resolved to 80.0.2, which depends on MapboxCommon (~> 20.1)

rnmapbox-maps (from `../node_modules/@rnmapbox/maps`) was resolved to 10.1.0-beta.20, which depends on
  MapboxMaps (~> 10.16.1) was resolved to 10.16.1, which depends on
    MapboxCommon (= 23.8.3)

rnmapbox-maps (from `../node_modules/@rnmapbox/maps`) was resolved to 10.1.0-beta.20, which depends on
  MapboxMaps (~> 10.16.1) was resolved to 10.16.1, which depends on
    MapboxCoreMaps (= 10.16.1) was resolved to 10.16.1, which depends on
      MapboxCommon (~> 23.8)

You have either:

  • out-of-date source repos which you can update with pod repo update or with pod install --repo-update.
  • changed the constraints of dependency MapboxCommon inside your development pod react-native-mapbox-navigation. You should run pod update MapboxCommon to apply changes you've made.

salvinoto avatar Nov 27 '23 17:11 salvinoto

Hey @salvinoto If you're encountering issues with the original version, I'd like to invite you to try my fork of React Native Mapbox Navigation. I've made some enhancements and fixes that might address your concerns. You can easily install it using npm with the following command:

npm install https://github.com/sarafhbk/react-native-mapbox-navigation

I'm eager to hear your feedback and improve it further, so please don't hesitate to share your thoughts and experiences!

sarafhbk avatar Feb 13 '24 17:02 sarafhbk

I will certainly try it out thank you

salvinoto avatar Feb 15 '24 11:02 salvinoto

@sarafhbk I get this issue on Android Execution failed for task ':homee_react-native-mapbox-navigation:compileDebugKotlin'. [RUN_GRADLEW] > 'compileDebugJavaWithJavac' task (current target is 17) and 'compileDebugKotlin' task (current target is 1.8) jvm target compatibility should be set to the same Java version.

RazaShehryar avatar Mar 28 '24 00:03 RazaShehryar