Quantcast
Channel: Active questions tagged react-native+android - Stack Overflow
Viewing all articles
Browse latest Browse all 28474

Could not find com.google.firebase:firebase-bom:12.0.1

$
0
0

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'

Viewing all articles
Browse latest Browse all 28474

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>