简体   繁体   中英

Firebase analytics for instant app

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?

添加strings.xml

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

我认为这是个例外,要解决此问题,请尝试在Firebase项目中启用Firebase Analytic,然后根据您的打包文件下载最新的Google.json文件,然后将其应用于Android项目。

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 '.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM