Karan Singla
Karan Singla

Reputation: 308

Get ERROR - Missing google_app_id, Firebase Analytics disabled

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

Answers (4)

iamrishan
iamrishan

Reputation: 104

if you configured firebase using flutterfire_cli you need to configure each time when you add a new package to the project

  1. flutter pub add firebase_analytics

  2. flutterfire configure

you can look in the documentation here

Upvotes: 1

Almund
Almund

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.

build.gradle build.gradle

app/build.gradle app/build.gradle


Did you also add in the classpath and implementation parts as per the instructions?

Required dependencies

Upvotes: 6

Moaz El-sawaf
Moaz El-sawaf

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

Purus
Purus

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

Related Questions