0
我在PreferenceScreen和加載動態配置數據中爲我的android應用程序使用firebase離線數據庫。當Android應用程序離線時Firebase實時數據庫崩潰
compile 'com.google.firebase:firebase-database:9.8.0'
使用它作爲:
FirebaseDatabase.getInstance().getReference(fireBaseReference);
我使用它按照教程:在連接時https://firebase.google.com/docs/database/
應用程序工作正常,離線它與下面的堆棧跟蹤崩潰
Caused by: java.lang.IllegalStateException: Default FirebaseApp is not initialized in this process com.nishant.starterkit.mock.
Make sure to call FirebaseApp.initializeApp(Context) first.
at com.google.firebase.FirebaseApp.getInstance(Unknown Source)
at com.google.firebase.database.FirebaseDatabase.getInstance(Unknown Source)
謝謝,如何檢查我的應用程序是否是多進程? –