【问题标题】:How to remove firebase analytics from sub module android?如何从子模块android中删除firebase分析?
【发布时间】:2020-03-20 05:26:08
【问题描述】:

当我尝试在我的项目中添加分析时,我收到了这个错误

任务“:countrycodepicker:processDebugGoogleServices”执行失败。

文件 google-services.json 丢失。没有它,Google 服务插件将无法运行。 搜索位置: D:\Think 42 labs\Rizek users\users\countrycodepicker\src\nullnull\google-services.json D:\Think 42 labs\Rizek users\users\countrycodepicker\src\debug\google-services.json D:\Think 42 labs\Rizek users\users\countrycodepicker\src\nullnullDebug\google-services.json D:\Think 42 labs\Rizek users\users\countrycodepicker\src\nullnull\debug\google-services.json D:\Think 42 labs\Rizek users\users\countrycodepicker\src\debug\nullnull\google-services.json D:\Think 42 labs\Rizek users\users\countrycodepicker\google-services.json

这是我的应用模块的 Gradle 文件

  {   
 //Analytics
implementation 'com.google.firebase:firebase-analytics:17.2.3'
//Country picker
implementation project(':countrycodepicker')
 }

【问题讨论】:

  • google-services.json,这里很清楚 文件 google-services.json 丢失。没有它,Google 服务插件将无法运行。
  • 它已经在应用模块中

标签: android firebase gradle firebase-analytics


【解决方案1】:

您需要follow the instructions in the documentation 才能将 Firebase 添加到您的应用中。尤其是step where you download the configuration file 并将其添加到您的项目中。

【讨论】:

  • 如果您看到该错误,则说明未正确实施。
猜你喜欢
  • 2016-09-23
  • 2015-07-03
  • 2016-11-02
  • 2019-08-08
  • 2018-08-19
  • 1970-01-01
  • 2016-07-11
  • 2013-05-18
  • 2019-02-26
相关资源
最近更新 更多