I am migrating from react-native-google-analytics-bridge to react-native-firebase. I followed the steps to add the package to my android project. At first I got an error saying method platform
is not available. Most of the stackoverflow posts said to upgrade the gradle from 3.1.3
to a higher version. So, I updated it to 3.5.0
plugin and 5.6.4
gradle version.
Now, On running the command 'react-native run-android', I am getting the below error:
Could not determine the dependencies of task ':@react-native-firebase_app:compileDebugAidl'.
> Could not resolve all task dependencies for configuration ':@react-native-firebase_app:debugCompileClasspath'.
> Could not find com.google.firebase:firebase-bom:12.0.1.
Required by:
project :@react-native-firebase_app
Can someone help with any possible solution to this.
More details: android/build.gradle file
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath 'com.google.gms:google-services:4.3.2'
}
android/app/build.gradle file:
dependencies {
implementation project(path: ":@react-native-firebase_app")
}
apply plugin: 'com.google.gms.google-services'