0

I am getting the following error while applying firebase analytics integration

02-21 17:32:59.447 12786-12786/? E/FA: GoogleService failed to initialize, status: 10, Missing google app id value from from string resources with name google_app_id.
    02-21 17:32:59.447 12786-12786/? E/FA: Scheduler not set. Not logging error/warn
    02-21 17:32:59.535 12786-12837/? E/FA: Missing google_app_id. Firebase Analytics disabled.

Setup Details is as follow:

Base Module:

added google-services.json to base module.
apply plugin: 'com.google.gms.google-services'
api "com.google.firebase:firebase-core:${MOBILE_GMS_LIBRARY_VERSION}"
api 'com.google.gms:google-services:3.0.0'

App Module:

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

Any suggestion please?

Prags
  • 2,457
  • 2
  • 21
  • 38
ASJ
  • 53
  • 5
  • possible duplicate https://stackoverflow.com/questions/47131986/adding-firebase-analytics-to-instant-app – Prags Feb 22 '18 at 05:35
  • please can you check https://developer.android.com/topic/instant-apps/guides/analytics.html#adding_google_analytics_to_an_instant_app_project and https://github.com/googlesamples/android-instant-apps/tree/master/analytics might it help you. – Prags Feb 22 '18 at 05:38
  • Ensure you are using `v3.1.0` or higher of the `google-services` plugin. `classpath 'com.google.gms:google-services:3.1.1'` – Prags Feb 22 '18 at 05:39
  • @PragatiSingh I already tried the possible duplicate solution. let me try 3.1.1. – ASJ Feb 22 '18 at 06:42
  • Still not working – ASJ Feb 22 '18 at 12:09
  • 1
    see https://stackoverflow.com/questions/34365369/googleservice-failed-to-initialize ? – TWL Feb 22 '18 at 20:10
  • @PragatiSingh Still not resolved – ASJ Feb 26 '18 at 05:44
  • Can you file a bug to Google, then link to it back in here? It would be helpful for all, thanks! https://issuetracker.google.com/issues/new?component=316045&template=1018787 – Prags Feb 26 '18 at 05:46

3 Answers3

2

add to strings.xml

<string name="google_app_id">x:xxxxxx:android:xxxx</string>
Furkan
  • 21
  • 1
  • 4
0
02-21 17:32:59.535 12786-12837/? E/FA: Missing google_app_id. Firebase Analytics disabled.

I think this is the exception, to resolve this, try to enable Firebase Analytic in your Firebase Project, and then download the newest Google.json file according to your package file then applied it on your Android project.

Darari Nur Amali
  • 465
  • 3
  • 13
0

Google Issuetracker

Good news! The engineers have fixed Gradle sync failure issue in version 3.2.1 of google-services.

I verified that project provided in comment#3 could be successfully compiled with 'com.google.gms:google-services:3.2.1'.

Prags
  • 2,457
  • 2
  • 21
  • 38