0

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.

nicholas
  • 12,790
  • 19
  • 75
  • 126

2 Answers2

1

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

Thanks

Salakar
  • 4,472
  • 1
  • 16
  • 24
  • Yeah - I've run through the installation again, and am getting the same result. I've added a gist of the `logcat` output to the post above. It looks like there is an exception being thrown from `RNFirebaseFirestoreCollectionReference`, but I can't tell what the problem is. The same project runs perfectly on iOS. – nicholas Nov 12 '17 at 23:44
  • Ah, I see the issue in your gist, `Caused by: java.lang.IllegalArgumentException: Unknown pattern character 'X'` was caused by a date parsing issue in a previous version, this has since been resolved, if you upgrade your RNFirebase version you should be good to go. – Salakar Nov 13 '17 at 11:01
0
in your android/app/build.gradle file set     multiDexEnabled true

    android {
  //..

  defaultConfig {
    //..
    multiDexEnabled true  // needed for firestore:
  }`enter code here`
  //..
}
ashwath hegde
  • 410
  • 6
  • 8