FirebaseRemoteConfig.getInstance与NullPointerException崩溃

时间:2018-04-23 21:06:48

标签: firebase firebase-remote-config

我在Crashlitics内部看到一堆崩溃,这些崩溃来自最近的 Firebase 15.0.0 ,试图获取FirebaseRemoteConfig

Caused by java.lang.NullPointerException
Attempt to invoke virtual method 'void com.google.android.gms.internal.config.zzar.zzc(long)' on a null object reference
com.google.firebase.remoteconfig.FirebaseRemoteConfig. (Unknown Source)
com.google.firebase.remoteconfig.FirebaseRemoteConfig.getInstance (Unknown Source)
com.google.firebase.remoteconfig.FirebaseRemoteConfig.getInstance (Unknown Source)
FirebaseRemoteConfig.getInstance期间调用{p> Application.onCreate,并且它在以前的所有版本中都运行良好。

构建

implementation "com.google.firebase:firebase-config:15.0.0"
classpath 'com.google.gms:google-services:3.2.1'

有人看到了吗?任何解决方案或解决方法?

P.S。我通过https://firebase.google.com/support/contact/bugs-features/向firebase小组发送了错误报告 https://github.com/firebase/quickstart-android/issues/474

1 个答案:

答案 0 :(得分:2)

根据https://github.com/firebase/quickstart-android/issues/474并未修复对Firebase RemoteConfig的15.0.2更新