React Native Firebase Firestore 在 Android 上崩溃

ReactNative Firebase Firestore Crashes on Android

我正在尝试启动 react-native-firebase 并在 android 应用程序中查询 firestore 数据库。但是每当我尝试查询一个集合时,该应用程序就会崩溃并显示一个非常具有描述性的消息:

Unfortunately, RNFirebaseStarter has stopped.

这是从 starter project, using the firestore query code right out of the Todo app tutorial 开始发生的。并且在 android 模拟器和通过 USB 连接的设备上都发生了。

我能找到的任何地方都没有报告错误。我怎么会开始调试呢?

跟进,here's a gist of the adb logcat output

您对此仍有疑问吗?您可以 post 从 adb logcat 记录下来,以便我们查明实际错误吗?

谢谢

in your android/app/build.gradle file set     multiDexEnabled true

    android {
  //..

  defaultConfig {
    //..
    multiDexEnabled true  // needed for firestore:
  }`enter code here`
  //..
}