homeeondemand / react-native-mapbox-navigation

A navigation UI ready to drop into your React Native application
MIT License
153 stars 118 forks source link

Trying to install, pods dependencies not working #120

Open salvinoto opened 7 months ago

salvinoto commented 7 months ago

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:

sarafhbk commented 4 months ago

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!

salvinoto commented 4 months ago

I will certainly try it out thank you

RazaShehryar commented 3 months ago

@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.