Internal error in Firestore (0.6.6-dev) when trying to update document

后端 未结 2 809
南旧
南旧 2020-12-20 14:32

The following error is giving me a hard time. I\'m trying to update a single field in a document stored in my Firestore project.

    E/AndroidRuntime: FATA         


        
相关标签:
2条回答
  • 2020-12-20 14:41

    This problem occurs when your are initializing the Firestore object multiple times in many processes. So instead of declaring it again and again, declare it globally and use accordingly..

    0 讨论(0)
  • 2020-12-20 15:01

    Thanks to @hatboysam, it works now. The solution is as simple as can be:

    Clear the data in the application manager on the device.

    Then run the app again.

    0 讨论(0)
提交回复
热议问题