Closed Khachik98 closed 2 years ago
Hi there! GIven you have ignored most of our template, I am going to guess you will be more comfortable on version 14 of react-native-firebase right now.
You need to do a few things - and you may have a few incompatibilities currently - if you use v15 - and you do not seem to have read the changelog and done them or it would not crash? https://github.com/invertase/react-native-firebase/blob/main/CHANGELOG.md#breaking-changes
Regardless - this is not actionable as it does not contain any information about the crash or enough information to troubleshoot since it removes parts of the template, so I'm going to have to close this
https://stackoverflow.com/help/how-to-ask https://stackoverflow.com/help/mcve https://hackernoon.com/i-thought-i-understood-open-source-i-was-wrong-cf54999c097b
Hi there! GIven you have ignored most of our template, I am going to guess you will be more comfortable on version 14 of react-native-firebase right now.
You need to do a few things - and you may have a few incompatibilities currently - if you use v15 - and you do not seem to have read the changelog and done them or it would not crash? https://github.com/invertase/react-native-firebase/blob/main/CHANGELOG.md#breaking-changes
Regardless - this is not actionable as it does not contain any information about the crash or enough information to troubleshoot since it removes parts of the template, so I'm going to have to close this
https://stackoverflow.com/help/how-to-ask https://stackoverflow.com/help/mcve https://hackernoon.com/i-thought-i-understood-open-source-i-was-wrong-cf54999c097b
When i delete 'apply plugin: 'com.google.gms.google-services', apk is open, but get firebase error. I think this is the reason.
I noticed that many people have this problem.
I noticed that you have not provided the details needed to troubleshoot unfortunately. I don't have any information with which to help you
I found a solution
Remove below line from MainApplication.java
import io.invertase.firebase.analytics.ReactNativeFirebaseAnalyticsPackage; import io.invertase.firebase.messaging.ReactNativeFirebaseMessagingPackage; ... packages.add(new ReactNativeFirebaseAnalyticsPackage()); packages.add(new ReactNativeFirebaseMessagingPackage());
Then react-native run-android
I found a solution
Remove below line from MainApplication.java
import io.invertase.firebase.analytics.ReactNativeFirebaseAnalyticsPackage; import io.invertase.firebase.messaging.ReactNativeFirebaseMessagingPackage; ... packages.add(new ReactNativeFirebaseAnalyticsPackage()); packages.add(new ReactNativeFirebaseMessagingPackage());
Then react-native run-android
If those were present in your project that sounds like "previously I had manually linked the native modules (fir some reason, unknown), and now relying on standard react-native auto linking works"
Hopefully this is a rare case and does not affect others, as auto linking really should be used by everyone at this point
Glad you got it working!
After updating the firebase version my app in crashes, when opens.
My package.json
My MainApplication.java
My app/build.gradle
My android/build.gradle
My settings.gradle