Trying to create a simple app with FireStore and Google Authentication. Having problem with the gradle:
In project \'app\' a resolved Google Play serv
None of the other answers worked for me. My use-case is with React-Native 61+
trying to setup FCM and Analytics. What worked for me was using the latest google-services
in android/build.gradle
dependencies {
classpath "com.android.tools.build:gradle:3.4.2"
classpath "com.google.gms:google-services:4.3.3" // Need the latest here
}
And then adding the gradle dependencies to android/app/build.gradle
required for the products I'm using (in my case Analytics and Cloud Messaging) from here
dependencies {
...
// add the Firebase SDK for Google Analytics
implementation 'com.google.firebase:firebase-messaging:20.1.0'
implementation 'com.google.firebase:firebase-analytics:17.2.2'
...
}