FirebaseCrash:无法初始化崩溃报告 [英] FirebaseCrash: Failed to initialize crash reporting
问题描述
FirebaseCrash:未能初始化崩溃报告
FirebaseCrash:com.google.firebase.crash.internal.zzg $ zza:com.google.android.gms.internal.zzsb $ zza:找不到可接受的模块。本地版本是0和远程版本是0.
我在模块应用程序项目中添加了以下内容并构建gradle:
classpath'com.google.gms:google-services:3.0.0'
compile'com。 google.firebase:firebase-core:9.4.0'
compile'com.google.firebase:firebase-ads:9.4.0'
compile'com.google.firebase:firebase-crash:9.4。 0`
apply plugin:'com.google.gms.google-services'
在应用程序文件夹中添加了 google-services.json
。
24小时,第一次更新的时间限制。为了得到第一个错误,我在 MainCctivity
中添加了第一个错误。
$ b
FirebaseCrash。报告(新的异常(我的第一个Android非致命错误));
我使用的Google Play服务版本是9.4.52(238-127739847)在我的模拟器(Nexus Api 23,Android版本6.0)。还有错误是在logcat中显示的,我怎么才能让崩溃报告工作? 解决方案
这里的底线是Firebase崩溃报告仅适用于使用Google Play服务的设备,并且其版本需要匹配或超过Firebase客户端库版本。
如果您正在模拟器中运行,则需要在安装了Play服务的情况下使用图片。
I am getting following error in my logcat while trying to use Firebase Crash Reporting:
FirebaseCrash: Failed to initialize crash reporting
FirebaseCrash: com.google.firebase.crash.internal.zzg$zza: com.google.android.gms.internal.zzsb$zza: No acceptable module found. Local version is 0 and remote version is 0.
I have added the following in module app project and build gradle:
classpath 'com.google.gms:google-services:3.0.0'
compile 'com.google.firebase:firebase-core:9.4.0'
compile 'com.google.firebase:firebase-ads:9.4.0'
compile 'com.google.firebase:firebase-crash:9.4.0`
apply plugin: 'com.google.gms.google-services'
and added google-services.json
in the app folder.
I got the Firebase Analytics working after the 24 hours, time limit for first updates. For getting the first error I have added in MainCctivity
.
FirebaseCrash.report(new Exception("My first Android non-fatal error"));
The Google Play Services I use is version 9.4.52(238-127739847) in my emulator (Nexus Api 23, Android Version 6.0). Still the error is shown in logcat , how can I get the crash report working?
The bottom line here is that Firebase Crash Reporting only works on devices with Google Play services, and that its version needs to match or exceed the Firebase client library version.
If you are running in an emulator, you need to use an image with Play services installed.
这篇关于FirebaseCrash:无法初始化崩溃报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!