2

we have "react-native-firebase": "4.2.0", after installing npm modules and try to run the app then we are getting this issue

FAILURE: Build failed with an exception.

Afsara
  • 1,411
  • 3
  • 13
  • 31
  • do you have `implementation 'com.google.firebase:firebase-auth:15.1.0'` in your *android/app/build.gradle* file? – Ivan Chernykh May 28 '18 at 11:09
  • Possible duplicate of [Gradle build tool cannot find play-services-tasks.aar? Why?](https://stackoverflow.com/questions/50562212/gradle-build-tool-cannot-find-play-services-tasks-aar-why) – Floern May 28 '18 at 13:07

2 Answers2

0

have you tried

react-native link react-native-firebase ?

Tahir
  • 54
  • 1
  • 7
0

I do not know if this is the question, but there is no specific google firebase configuration for react-native, so you need to log in to your project inside https://console.firebase.google.com/, access your project and go in web configurations and implement in your code.

ex:

componentWillMount() {
        firebase.initializeApp({
            apiKey: "YOURAPIKEY",
            authDomain: "",
            databaseURL: "",
            projectId: "",
            storageBucket: "",
            messagingSenderId: "YOURKEY"
        });

Cheers,