-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Android Build Error with RN 59 #3492
Comments
react-native-firebase v6 is only supported for react-native 0.60+ This will sound harsh but please understand I wrote the jetifier you are using because I understand the pain of the upgrade from RN59 to RN60+ and the AndroidX switch. I sympathize - I wrote it to support people that had to delay. The harsh part is that you are out of time though - you really need to upgrade Luckily, the Android Studio process to do the upgrade (and then jetifier but in the forward direction) make it not so painful. The hardest part for me after that was the Xcode iOS part - converting to cocoapods etc. No sugar-coating that, it's painful. But RN60 is needed for proper support of Xcode 11 (which is needed for iOS13 etc) and it's been about a year now You may be able to work around this by adding an annotation dependency in your app/build.gradle but I'm not sure |
@mikehardy Yes I will consider the upgrade sometime in the future. Until then I will be using V5. |
@Salakar this is a fair point - https://rnfirebase.io/#prerequisites could perhaps state RN60+ as a requirement (and if I am not mistaken, also iOS10+ but I could be wrong there) The supported versions matrix for v5 was a bit gnarly but was still useful to refer people to: https://v5.rnfirebase.io/docs/v5.x.x/getting-started#Supported-versions---React-Native-/-Firebase |
Hi |
I'm not sure, that's a version from more than 2 years ago. We don't test old versions normally, since the software's free and generally pretty easy to upgrade from version to version we expect people to adopt new releases. Rather than face possible (probable!) incompatibilities I'd prioritize working through the upgrade. I just scanned it and it's not so bad: https://react-native-community.github.io/upgrade-helper/?from=0.60.5&to=0.66.1 A big chunk of it is auto-generated by Then you'll know it just works and we actually test it. I think we still have a lot of users back on 0.63 but the diff on upgrade-helper looks almost the same! The changes got much much smaller as it went to 64 65 and then 66. |
I had an unrelated issue which caused me to do some research today on minimum supported versions.
Sure, there are a couple months to go but those are months full of holidays etc. I would strongly prioritize updating to react-native 0.62 and using Xcode 13 in your build environment. Once you've done that, might as well go to 0.66, the further upgrades are pretty easy. Then you may access the current versions here and throughout the react-native ecosyste with no questions or fear. |
Hi |
Hi @code-by it appears that AWS SNS is compatible with FCM and APNS and those are the services that firebase messaging uses https://docs.aws.amazon.com/sns/latest/dg/sns-prerequisites-for-mobile-push-notifications.html Definitely use current versions of anything you're trying to do, so not v5 here, you'll want the current release (12.9.3 at the moment) |
Issue
I'm using react-native-firebase with RN 0.59.8 (without AndroidX). I use reverse-jetify as a post-install script. During android build I come up with following build error which is apparently due to androidX issues. As of now I cannot migrate to AndroidX.
Project Files
Android
Click To Expand
Have you converted to AndroidX?
android/gradle.settings
jetifier=true
for Android compatibility?jetifier
for react-native compatibility?android/build.gradle
:// N/A
android/app/build.gradle
:// N/A
android/settings.gradle
:// N/A
MainApplication.java
:// N/A
AndroidManifest.xml
:<!-- N/A -->
Environment
Click To Expand
react-native info
output:react-native-firebase
version you're using that has this issue:6.4.0
Firebase
module(s) you're using that has the issue:App
TypeScript
?N
React Native Firebase
andInvertase
on Twitter for updates on the library.The text was updated successfully, but these errors were encountered: