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

Fix 'Could not find com.facebook.react:react-android' on RN < .71 #236

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

andrei-tofan
Copy link
Contributor

Description

Fixes #<231>

Checklist

  • I have tested this on a device/simulator for each compatible OS
  • I formatted JS and TS files with running yarn lint:fix in the root folder
  • I have run tests via yarn test in the root folder
  • I updated the documentation with running yarn generate in the root folder
  • I mentioned this change in CHANGELOG.md

@ShepSims
Copy link

I also see this on 73.4

Could not find com.facebook.react:react-android:0.73.4.

with android/build.gradle

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin"
classpath('com.android.tools.build:gradle:8.2.2')
classpath 'com.google.gms:google-services:4.3.14'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.9.2'
classpath("com.facebook.react:react-native-gradle-plugin")
}

and android/app/build.gradle

dependencies {
...
implementation fileTree(dir: "libs", include: ["*.jar"])
implementation "com.facebook.react:react-native:+"  // From node_modules
implementation "com.facebook.react:react-android:0.73.4"
implementation "com.facebook.react:hermes-android:0.73.4"

...}

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

Successfully merging this pull request may close these issues.

2 participants