maplibre-react-native
maplibre-react-native copied to clipboard
Fix 'Could not find com.facebook.react:react-android' on RN < .71
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:fixin the root folder - [X] I have run tests via
yarn testin the root folder - [X] I updated the documentation with running
yarn generatein the root folder - [X] I mentioned this change in
CHANGELOG.md
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"
...}
Something similar was released as v10.0.0-beta.6. Please try if it fixes your problem or if it still exists.