Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Versions greater than 2.0.8 - Could not find any matches for com.facebook.react:react-android:+ #39

Open
navinluxai opened this issue Apr 16, 2024 · 2 comments

Comments

@navinluxai
Copy link

Versions above 2.0.8 , I am getting below error while trying to run app, React native version is 0.70.5

`FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':app:processDebugResources'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not find any matches for com.facebook.react:react-android:+ as no versions of com.facebook.react:react-android are available.
Searched in the following locations:
- file:/C:/Code2/EducatorApp/node_modules/react-native/android/com/facebook/react/react-android/maven-metadata.xml
- file:/C:/Code2/EducatorApp/node_modules/jsc-android/dist/com/facebook/react/react-android/maven-metadata.xml
- https://dl.google.com/dl/android/maven2/com/facebook/react/react-android/maven-metadata.xml
- https://www.jitpack.io/com/facebook/react/react-android/maven-metadata.xml
Required by:
project :app > project :react-native-quick-base64

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 21s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081 -PreactNativeDebugArchitectures=arm64-v8a -PreactNativeArchitectures=arm64-v8a

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not determine the dependencies of task ':app:processDebugResources'.

Could not resolve all task dependencies for configuration ':app:debugRuntimeClasspath'.
Could not find any matches for com.facebook.react:react-android:+ as no versions of com.facebook.react:react-android are available.
Searched in the following locations:
- file:/C:/Code2/EducatorApp/node_modules/react-native/android/com/facebook/react/react-android/maven-metadata.xml
- file:/C:/Code2/EducatorApp/node_modules/jsc-android/dist/com/facebook/react/react-android/maven-metadata.xml
- https://dl.google.com/dl/android/maven2/com/facebook/react/react-android/maven-metadata.xml
- https://www.jitpack.io/com/facebook/react/react-android/maven-metadata.xml
Required by:
project :app > project :react-native-quick-base64

`

@boorad
Copy link
Collaborator

boorad commented Apr 23, 2024

So, I was able to build the Example app in this repo just fine for Android, and see it in the emulator. Can you do that successfully? It may be something with your setup.

Also, I found this thread that might be helpful.

@dongnguyen00
Copy link

Same on react-native-quick-base64 2.0.5 and RN 0.69.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants