maplibre-react-native icon indicating copy to clipboard operation
maplibre-react-native copied to clipboard

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

Open andrei-tofan opened this issue 1 year ago • 1 comments
trafficstars

Description

Fixes #<231>

Checklist

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

andrei-tofan avatar Jan 30 '24 08:01 andrei-tofan

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"

...}

ShepSims avatar Feb 15 '24 19:02 ShepSims

Something similar was released as v10.0.0-beta.6. Please try if it fixes your problem or if it still exists.

KiwiKilian avatar Dec 09 '24 08:12 KiwiKilian