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


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.

2
Feb 18 at 11:18 PM
User AvatarNeli Todorova
#android#flutter

No answer found for this question yet.