Closed karthikbs27 closed 10 months ago
I found a few problems with this issue:
Thanks for reaching out, @karthikbs27. I was able to reproduce the same behavior by using the versions below:
implementation(platform("com.google.firebase:firebase-bom:32.7.0"))
implementation("com.google.firebase:firebase-firestore")
implementation("com.google.mlkit:digital-ink-recognition:18.1.0")
I'll notify our engineers and see what we can do here.
I am able to get Firestore to work by pinning version to the one used by Firestore.
implementation("com.squareup.okio:okio") {
version {
strictly("1.17.5")
}
}
However, the Firebase library should also update their internal dependency on io.grpc:grpc-okhttp
to a more recent version that will transitively bring com.squareup.okio:okio
up to 2.10.0
and likely solve the problem as well.
Tracking upgrade of gRPC internally in b/317067917
We will be updating our dependencies for Firebase I/O 2024 since this will represent a breaking change of increasing our minimum Android level.
I am able to get Firestore to work by pinning version to the one used by Firestore.
implementation("com.squareup.okio:okio") { version { strictly("1.17.5") } }
However, the Firebase library should also update their internal dependency on
io.grpc:grpc-okhttp
to a more recent version that will transitively bringcom.squareup.okio:okio
up to2.10.0
and likely solve the problem as well.
Sorry for the late reply. The implementation is working fine. Thanks for the update.
Thank you so much @karthikbs27 for bringing that up and thank you @tom-andersen for the fix. I've been struggling for a week because of that.
For anyone using Firestore and Mlkit on unity and wondering why when running on android, firestore fails to connect and throws a Task fail error saying that there are no internet connections, that's the fix !
In unity Player/PublishingSettings tick Custom Main Gradle Template, Custom Gradle Properties Template and Custom Gradle Settings Template.
Force Resolve External Dependency Manager (Android) to get the dependencies required and add the fix inside mainTemplate.Gradle inside dependencies {}
Closing the issue, with the temporary fix. Hoping the fix to be present in Firebase I/O 2024. Thank you all.
I am working on an android native app development using koltin, jetpack compose. Below is the environment detail.
I am facing an issue with Firestore and ML kit Digital Ink. If I have ML kit installed, firestore will not connect to the server, it throws the below warnings, with the mobile internet.
But I tried to fix it with a patch in gradle with the mobile internet.
I got the below logs
But when the device is connected to wifi and the 'OKio' fix is present in the gradle, The firestore works fine.