android - 如何从子模块android中删除firebase分析?

标签 android firebase gradle firebase-analytics

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

任务 ':countrycodepicker:processDebugGoogleServices' 执行失败。

File google-services.json is missing. The Google Services Plugin cannot function without it. Searched Location: 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')
 }

最佳答案

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

关于android - 如何从子模块android中删除firebase分析?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60768979/

相关文章:

android - flutter :引发了另一个异常:类型 'Future<dynamic>' 不是类型 'String' 的子类型

android - SupportMapFragment 不支持 AndroidX Fragment

firebase - 如何使用 HTTP 调用 Firebase 可调用函数?

java - Gradle 排除 VS 包含

android - 简单的 EditText 货币格式化程序

android - 需要开发可以支持使用 Adob​​e Captivate 开发的模块的 Android 和 iOS 应用程序

android - 更好的gradle表达式为所有子项目执行fileTrees.add()

gradle - 'jar'语法是什么意思?

ios - Firebase 是否始终保证按顺序添加事件?

android - 可以将 child 批量添加到 Firebase ref,每个 child 都有自己的优先级吗?