[英]Firebase analytics for instant app
I am getting the following error while applying firebase analytics integration 应用Firebase分析集成时出现以下错误
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 Google Issuetracker
Good news! 好消息! The engineers have fixed Gradle sync failure issue in version 3.2.1
of google-services . 工程师已修复Google服务 3.2.1
版中的Gradle同步失败问题。
I verified that project provided in comment#3 could be successfully compiled with ' com.google.gms:google-services:3.2.1
'. 我验证了注释3中提供的项目可以使用“ com.google.gms:google-services:3.2.1
”成功编译。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.