invertase / react-native-firebase

🔥 A well-tested feature-rich modular Firebase implementation for React Native. Supports both iOS & Android platforms for all Firebase services.
https://rnfirebase.io
Other
11.55k stars 2.19k forks source link

🔥Can't able to run react native android app with @react-native-firebase/perf": "19.1.0 and above #7769

Closed Chethana-KM closed 2 months ago

Chethana-KM commented 2 months ago

Issue

Describe your issue here

I have tried integrating firebase packages with version >=19.0.0 in RN 0.71.18.But with all the versions, I'm ending up with the

below error :

Screenshot 2024-04-27 at 10 11 26 AM

Also find the below files which has following changes:

Project Files

Javascript

Click To Expand

#### `package.json`: ```json # N/A ``` #### `firebase.json` for react-native-firebase v6: ```json # N/A ```

iOS

Click To Expand

#### `ios/Podfile`: - [ ] I'm not using Pods - [x] I'm using Pods and my Podfile looks like: ```ruby # N/A ``` #### `AppDelegate.m`: ```objc // N/A ```


Android

Click To Expand

#### Have you converted to AndroidX? - [x] my application is an AndroidX application? - [x] I am using `android/gradle.settings` `jetifier=true` for Android compatibility? - [x ] I am using the NPM package `jetifier` for react-native compatibility? #### `android/build.gradle`: ```groovy // N/A ``` #### `android/app/build.gradle`: ```groovy // N/A ``` #### `android/settings.gradle`: ```groovy // N/A ``` #### `MainApplication.java`: ```java // N/A ``` #### `AndroidManifest.xml`: ```xml ```


Environment

Click To Expand

**`react-native info` output:** ``` OUTPUT GOES HERE ``` - **Platform that you're experiencing the issue on**: - [x ] iOS - [ ] Android - [ x] **iOS** but have not tested behavior on Android - [ ] **Android** but have not tested behavior on iOS - [ ] Both - **`react-native-firebase` version you're using that has this issue:** - `19.1.0` - **`Firebase` module(s) you're using that has the issue:** - `e.g. Instance ID` - **Are you using `TypeScript`?** - `Y` & `^4.8.4`


mikehardy commented 2 months ago

implementation 'com.google.firebase:firebase-appindexing:19.2.0' // App indexing

This is dangerous as a direct version specification. @react-native-firebase/app includes the firebase-bom which defines the versions we know are compatible within the com.google.firebase group, and you should not directly specify the versions in general

You don't mention what version of react-native you are on, but this looks like something in the gradle/android-gradle-plugin/google-services-plugin area.

I would make sure you are on current react-native, and make sure you are using current google-services plugin (4.4.1 https://firebase.google.com/support/release-notes/android)

I build from scratch all the time and it works, but it uses current versions: https://github.com/mikehardy/rnfbdemo/blob/main/make-demo.sh