当我尝试在我的项目中添加分析时,我收到了这个错误
任务 ':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/