Upgraded to Flutter 3.13.0, Android throws "No address associated with hostname"

1.3k views Asked by At

Today we upgraded our Flutter project to 3.13.0. Project runs fine on iOS. On Android I'm getting this uncaught exception while debugging the project in VS code. The URL is valid. Interestingly, the app does seem to be able to hit these URLs and functions fine. But unsure why we are getting this exception all the sudden.

SocketException (SocketException: Failed host lookup: '*************' (OS Error: No address associated with hostname, errno = 7))

Tried downgrading our version back to 3.10.1 and the issue goes away. However, our build pipeline started failing on this version. We use intl for localizations, which needed updating for our pipeline to run. Ultimately, trying to understand how we can resolve the SocketException and stay on the newest version of Flutter.

1

There are 1 answers

0
TimF On

I get this exception thrown when running Android Studio in debug mode. Works fine in Run mode