homeeondemand/react-native-mapbox-navigation

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

frankloginss opened this issue · 1 comments

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]

  • Where:

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

[stderr]

  • What went wrong:

[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]
- debugVariantDefaultRuntimePublication

[stderr]
- releaseVariantDefaultRuntimePublication

[stderr]
All of them match the consumer attributes:

[stderr]

  • Variant 'debugVariantDefaultRuntimePublication' capability com.facebook.react:react-android:0.71.3:

[stderr]
- Unmatched attributes:

[stderr]
- Provides

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

[stderr]
- Provides org.gradle.category 'library' but the consumer didn't ask for it

[stderr]

  • Provides org.gradle.dependency.bundling 'external' but the consumer didn't ask for it

[stderr]
- Provides

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

[stderr]
- Provides org.gradle.status 'release' but the consumer didn't ask for it

[stderr]
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it

[stderr]
- Variant 'releaseVariantDefaultRuntimePublication' capability com.facebook.react:react-android:0.71.3:

[stderr]
- Unmatched attributes:

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

[stderr]
- Provides org.gradle.category 'library' but the consumer didn't ask for it

[stderr]
- Provides org.gradle.dependency.bundling 'external'

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

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

[stderr]
- Provides org.gradle.status 'release' but the consumer didn't ask for it

[stderr]
- Provides org.gradle.usage 'java-runtime' but the consumer didn't ask for it

[stderr]

  • Try:

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

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!