nicholas
nicholas

Reputation: 14563

ReactNative Firebase Firestore Crashes on Android

I'm trying to get react-native-firebase up and querying a firestore database in an android app. But whenever I try to query a collection, the app crashes with a very descriptive:

Unfortunately, RNFirebaseStarter has stopped.

This is happening right from the starter project, using the firestore query code right out of the Todo app tutorial. And is happening both in an android simulator and on a device connected through USB.

There are no errors being reported anywhere that I can find. How would I even begin to debug this?

Following up, here's a gist of the adb logcat output.

Upvotes: 0

Views: 844

Answers (2)

ashwath hegde
ashwath hegde

Reputation: 656

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

    android {
  //..

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

Upvotes: 0

Salakar
Salakar

Reputation: 6304

Are you still having an issue with this? Could you post logs from adb logcat so we can pinpoint the actual error?

Thanks

Upvotes: 1

Related Questions