UnknownHostException after Android 11 update

Among Samsung devices, users who have updated their os to Android 11 are getting UnknownHostException.

Once an UnknownHostException is returned, the user continues to receive the same error unless the app is reinstalled or the device is rebooted.

Of the users whose OS is Android 11, only a few users are having problems.

Both Http and Https give the same error.
Both Wifi, 5G and LTE give the same error.

The device for which the error was reported.
SM-G970N, SM-G973N, SM-G975N, SM-G977N
SM-N971N, SM-N976N
SM-G986N, SM-G991N

It is presumed to have started on March 9th, 21st.

1 Like

Hello,
Did you find okay in other manufacturer’s devices like pixel(Android 11) also? Or do you think this is Samsung restricted issue?

Because it was not reproduced on my device
I judged by looking at the percentage of users who experienced the error.
received feedback from more than 100 users, Only two users were Google Pixel 4a and the rest were Samsung devices. (All OS was Android 11.)

Same issue on our prod:
Locally all fine with network connection. Only app reinstall helps.

java.net.UnknownHostException: Unable to resolve host “api.***.com”: No address associated with hostname
at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156)
at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103)
at java.net.InetAddress.getAllByName(InetAddress.java:1152)
at m1.r.a(SourceFile:1)
at m1.o0.g.d.a(SourceFile:66)
…
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:919)
Caused by: android.system.GaiException: android_getaddrinfo failed: EAI_NODATA (No address associated with hostname)
at libcore.io.Linux.android_getaddrinfo(Native Method)
at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:74)
at libcore.io.BlockGuardOs.android_getaddrinfo(BlockGuardOs.java:200)
at libcore.io.ForwardingOs.android_getaddrinfo(ForwardingOs.java:74)
at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:135)
… 36 more

Hi Guys,

Any news about this issue? I have the same problem.