79458701

Date: 2025-02-21 21:58:57
Score: 0.5
Natty:
Report link

Apparently API 35 / Android 15 have changes that affect how local hostnames (like localhost) are resolved. Just add InetAddress.getByName("127.0.0.1") to bind to the loopback address explicitly, to 127.0.0.1, which is a localhost IP, like this

mockWebServer.start(InetAddress.getByName("127.0.0.1"), 8080);

After this tests have started to work correct

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: AShX