firebase-android-sdk: [Android][FLUTTER] Stream closed with status: Status{code=UNAVAILABLE, description=Unable to resolve host firestore.googleapis.com, cause=java.lang.RuntimeException
Describe your environment
- Android Studio version: 2021.2.1
- Firebase Component: _____ Firestore
- Component version: _____
Describe the problem
Steps to reproduce:
iam working on a flutter app and i don’t think this is a flutterfire problem , just initialized firebase for my project , added the packages and did not execute any code but await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
error Code:
/ManagedChannelImpl(23932): [{0}] Failed to resolve name. status={1}
W/Firestore(23932): (24.3.1) [WatchStream]: (5cc1395) Stream closed with status: Status{code=UNAVAILABLE, description=Unable to resolve host firestore.googleapis.com, cause=java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
W/Firestore(23932): at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:223)
W/Firestore(23932): at io.grpc.internal.DnsNameResolver.doResolve(DnsNameResolver.java:282)
W/Firestore(23932): at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:318)
W/Firestore(23932): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/Firestore(23932): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/Firestore(23932): at java.lang.Thread.run(Thread.java:920)
W/Firestore(23932): Caused by: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
W/Firestore(23932): at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156)
W/Firestore(23932): at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103)
W/Firestore(23932): at java.net.InetAddress.getAllByName(InetAddress.java:1152)
W/Firestore(23932): at io.grpc.internal.DnsNameResolver$JdkAddressResolver.resolveAddress(DnsNameResolver.java:631)
W/Firestore(23932): at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:219)
W/Firestore(23932): ... 5 more
and the error goes on and on and on till the app crashes , and if i opened any connection with firestore it won’t get the data NOTE : i have a stable internet fiber connection so i don’t this is the issue
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 16 (8 by maintainers)
I found a few problems with this issue:
@argzdev Thanks, I have done that
Hi @kivocsa99, our engineers have responded:
That said, could you try opening an issue in the flutterfire repository? They’ll be able to assist you better since this is something being handled in the flutter layer.
I’ll close this issue for now. Feel free to ask this to be reopened if the flutterfire team have verified that this issue is on the native android side.
Thanks again, @kivocsa99, and no worries! We’ll let you know any findings once our engineers have updates.
@argzdev yes i have 30 , 31 ,32 , 29 and on multiple emulator devices all with the same issue , sorry for the late reply though
@argzdev yes it’s only on emulator , no problems whatsoever on physical device but i can’t just work on my physical device cuz it’s my daily device use , though there are some guys on stackoverflow says than downgrading the emulator version work , or turning of the wifi , but non of this actually worked with me
Got it, @kivocsa99. Thanks for the quick response!