firebase/firebase-android-sdk

Flutter: Crash due to OkioStorage in androidx.datastore, Internal error in Cloud Firestore (26.0.0)

Closed this issue · 3 comments

Describe your environment

  • Android Studio version: Android Studio Narwhal 3 Feature Drop | 2025.1.3 Build #AI-251.26094.121.2513.14007798, built on August 28, 2025
    Runtime version: 21.0.7+-13880790-b1038.58 aarch64
    VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  • Firebase Component: Firestore
  • Component version: 26.0.0

Describe the problem

We're receiving a significant number of reports about our Flutter app repeatedly crashing in our production environment.
We can confirm these application crashes in Firebase Crashlytics.
A stacktrace of the Internal error in Cloud Firestore (26.0.0) is attached.
de.edeka.nemo_issue_ab8f35baac835f163142dc488fe071c8_crash_session_68CA7E8E032800013BE53CC25722FF31_DNE_0_v2_stacktrace.txt

Steps taken

We have tried to update our Flutter Firebase dependencies such as cloud_firestore, firebash_auth, and firebase_core but have not seen crashes disappear.
We have tried to downgrade as well but that would require reinstalling the app for thousands and thousands of users since the storage mechanism used in the Firestore internals does not seem to be backwards compatible.
We have contacted Firebase Support and opened an issue with flutterfire (GitHub): firebase/flutterfire#17666, but so far without being able to resolve the issue.

What we need / Futher info

Instructions on how to fix the bug or a timeline when a fix from Google will be available, any other assistance is also greatly appreciated.
The bug seems to be fixed in androidx.datastore: https://developer.android.com/jetpack/androidx/releases/datastore
and the bug seems to also be fixed in firebase-android-sdk 3.0.1: https://github.com/firebase/firebase-android-sdk/blob/main/firebase-sessions/CHANGELOG.md
Is there any way for us as Flutter app developers to "get" that version, that includes the fix?
The Flutter firebase packages seem to reference a version 34.1.0: https://github.com/firebase/flutterfire/blob/main/packages/firebase_core/firebase_core/android/gradle.properties which seems to be a completely different "version" than the 3.0.1 version of firebase-android-sdk

I found a few problems with this issue:

  • I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
  • This issue does not seem to follow the issue template. Make sure you provide all the required information.

Hi @Phillip-Schackier ,

I would suggest open a ticket in flutterfire git repository as they have the info about the sdk version dependency. I will close this ticket for now. Please let a message if there is any other questions or requests.

Hi @cherylEnkidu,

I've opened a ticket in the flutterfire git repository and they've sent me here, unfortunately.
See: firebase/flutterfire#17666