homeeondemand / react-native-mapbox-navigation

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

Could not resolve com.facebook.react:react-native:+. #111

Open frankloginss opened 1 year ago

frankloginss commented 1 year ago

I have been trying to solve this issue but to no success. I have tried all the suggested methods and solution. None works. Been trying to compile on Expo EAS. This is the error keep getting.

[stderr] FAILURE:

[stderr] Build failed with an exception.

[stderr]

[stderr] Build file '/home/expo/workingdir/build/node_modules/@sqware/react-native-mapbox-navigation/android/build.gradle' line: 142

[stderr]

[stderr] A problem occurred configuring project ':sqware_react-native-mapbox-navigation'.

[stderr]

Could not resolve all files for configuration ':sqware_react-native-mapbox-navigation:implementation'.

[stderr]

Could not resolve com.facebook.react:react-native:+.

[stderr] Required by:

[stderr] project :sqware_react-native-mapbox-navigation

[stderr]

Cannot choose between the following variants of com.facebook.react:react-android:0.71.3:

[stderr]

[stderr]

[stderr] All of them match the consumer attributes:

[stderr]

[stderr]

[stderr]

[stderr] com.android.build.api.attributes.BuildTypeAttr 'debug' but the consumer didn't ask for it

[stderr]

[stderr]

[stderr]

[stderr] org.gradle.libraryelements 'aar' but the consumer didn't ask for it

[stderr]

[stderr]

[stderr]

[stderr]

[stderr]

[stderr]

[stderr]

[stderr] but the consumer didn't ask for it

[stderr]

[stderr]

[stderr]

[stderr]

[stderr]

Run with --stacktrace option to get the stack trace.

[stderr]

Run with --info or --debug option to get more log output.

[stderr]

Run with --scan to get full insights.

[stderr]

[stderr] BUILD FAILED in 2m 59s

5 actionable tasks: 5 executed

Error: Gradle build failed with unknown error. See logs for the "Run gradlew" phase for more information.

I seriously need help here. I will be grateful.

sarafhbk commented 7 months ago

Hey @frankloginss 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!