Flutter Android SocketException: Failed host lookup: api.stripe.com

23 hours ago 2
ARTICLE AD BOX

The error is: SocketException (SocketException: Failed host lookup: 'api.stripe.com' (OS Error: No address associated with hostname, errno = 7)) I get this error only when I run the Flutter app on Android device (emulator/ physical device).

I tried adding the following code but it does not help.

<uses-permission android:name="android.permission.INTERNET"/>

The problem does not come from a private network.

This is a minimal project that reproduces the problem: https://limewire.com/d/KyMD7#aP7OlHK9zk the issue is reproducible when the increment button is tapped.

Read Entire Article