我的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'
我這是如何初始化火力崩潰:
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.
您是否可以使用您正在測試的設備上安裝的Play Services版本更新此版本? –
@DougStevenson我正在模擬器中測試,並且Play服務已更新。 降級到firebase 9.0.2解決了這個問題。 –
您應該始終能夠使用最新的客戶端庫。您可以驗證模擬器上運行的Play服務的版本嗎?這是重要的一部分。 –