我的build.gradle文件
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:design:22.2.1'
compile 'com.google.firebase:firebase-core:9.4.0'
compile "com.google.firebase:firebase-auth:9.4.0"
compile 'com.google.firebase:firebase-crash:9.4.0'
}
apply plugin: 'com.google.gms.google-services'
这就是我初始化 FireBase Crash 的方式:
FirebaseCrash.report(new Exception("My first Android non-fatal error"));
但我是从 Logcat 得到的:
Failed to initialize crash reporting
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.
最佳答案
如果您的设备上没有更新 Google Play 服务或根本没有安装,崩溃报告将不会初始化。
关于android - Firebase:无法初始化崩溃报告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39120568/