Closed Luckygirlllll closed 6 years ago
You'll also need to upgrade your firebase SDK versions and gradle as well for v4, see the upgrade guide on the v4 realase notes: https://rnfirebase.io/docs/v4.0.x/release-notes#Upgrade-instructions
Same error here (started happening today), we followed the upgrade instructions but this did not solve the issue.
Fixed with the following:
Had to change the next line in package.json
"react-native-firebase": "^4.0.5",
to
"react-native-firebase": "4.0.0",
deleted package-lock.json
and ran npm install
again
also re-download google-services.json from firebase as we were getting this error:
> Task :app:processDebugGoogleServices FAILED
Parsing json file: ...\android\app\google-services.json
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:processDebugGoogleServices'.
> Failed to delete: ...\android\app\build\generated\res\google-services\debug
Don't forget to update your project global settings if you set them in android/build.gradle
I changed:
ext {
compileSdkVersion = 26
targetSdkVersion = 26
buildToolsVersion = "26.0.2"
googlePlayServicesVersion = "11.8.0"
supportLibVersion = "27.1.0"
}
to
ext {
compileSdkVersion = 26
targetSdkVersion = 26
buildToolsVersion = "26.0.2"
googlePlayServicesVersion = "12.0.1"
supportLibVersion = "27.1.0"
}
For dynamic links on iOS, you need to make a subtle change to your
AppDelegate.m
- (BOOL)application:(UIApplication *)application openURL:(NSURL *)url options:(NSDictionary<NSString *, id> *)options { return [[RNFirebaseLinks instance] application:application openURL:url options:options]; }
Issue
After updating react-native-firebase to the version 4.0.3, I'm getting such errors:
Android:
4 errors
IOS:
Environment
Both
macOS High Sierra
Xcode 10.2 Android studio 3.0.1
0.47.2
4.0.3
dynamic links