Reputation: 308
While using google analytics with flutter, Get
Missing google_app_id. Firebase Analytics disabled. See "https://goo .gl/NAOOOI"
I tried many things but this issue is not gone. I used
"apply plugin: 'com.google.gms.google-services'"
in my android.build.gradle file also.
Upvotes: 8
Views: 13619
Reputation: 104
if you configured firebase using flutterfire_cli you need to configure each time when you add a new package to the project
flutter pub add firebase_analytics
flutterfire configure
you can look in the documentation here
Upvotes: 1
Reputation: 6216
Edit:
The following instructions are no longer available as they have been replaced with https://firebase.google.com/docs/auth/flutter/start which use the flutterfire configure
command to automatically add the needed dependencies.
Did you also add in the classpath and implementation parts as per the instructions?
Upvotes: 6
Reputation: 3049
I have just opened the analytics dashboard in the Firebase Console to make sure it is not disabled and found everything is okay, after that I stopped the app and made a fresh run and found that the error gone.
Upvotes: 0
Reputation: 5799
My project was using older version of flutter admob plugin and google-services.json
file. The new Admob plugin expects the admob_app_id
key-value pair to be present in the json file.
I solved this issue by downloading the new google-services.json
file and replacing the old one with the newly downloaded file.
Upvotes: 1