Solved: Flutter application suddenly has no internet connection at all


Asked by Tal R on December 01, 2021 (source).

I am running my application on Android emulator.

I verified the emulator itself has internet connection. I could browse via Google Chrome. 2 months ago everything worked as expected, and I didn't touch the code. Suddenly, when I run it I have no internet access via the application.

What I did:

  1. I verified I have the internet permission: <uses-permission android:name="android.permission.INTERNET"/> in: android/app/src/[main|debug|profile]/AndroidManifest.xml.
  2. flutter doctor - everything is fine.

Any advice? observe? I cannot understand why would I lost the internet connectivity


Question answered by Riwen (source).

Reposting my comment, since it seemed to solve your issue.

In the past, I've faced such errors. In my case, it was caused by the antivirus software (namely, Kaspersky Antivirus) that ran on the host machine. Disabling it temporarily solved the issue entirely. Try disabling any antivirus software and see how it goes.