Yochyo
Yochyo

Reputation: 87

Android app does not connect to firebase analytics

I tried adding firebase to my application but it didn't work at all. I successfully connected my application with firebase by using Tools -> Firebase in android studio and added the dependencies.

enter image description here

It connected successfully but whatever I try, the firebase console says it's still waiting for my app to communicate with their servers (I waited one night by now).

enter image description here

When I start the application, the logcat doesn't say anything about firebase

enter image description here

I did exactly the same steps with a newly created (empty) application and it worked without problems.

I tried to uninstall and reinstall the app again, I cleared the cache in android studio, rebuilded the project, resynced it with gradle. Nothing worked.

This is the gradle file in my app module: https://pastebin.com/gKHa68ii

apply plugin: 'com.google.gms.google-services'
apply plugin: 'com.google.firebase.crashlytics'

implementation 'com.google.firebase:firebase-crashlytics:17.2.1'
implementation 'com.google.firebase:firebase-analytics:17.5.0'

This is my other gradle file: https://pastebin.com/Y3bCrHDM

classpath 'com.google.gms:google-services:4.3.3'
classpath 'com.google.firebase:firebase-crashlytics-gradle:2.2.0'

Upvotes: 0

Views: 428

Answers (1)

PedroAGSantos
PedroAGSantos

Reputation: 2346

I think you are missing

apply plugin: 'com.google.gms.google-services'

at the of your App module gradlew file

Upvotes: 0

Related Questions