Unhandled Exception: Failed host lookup in Flutter

If you are facing the following error while processing an HTTP request in the Flutter app.

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Failed host lookup:

Then check the below list

  • Make sure you are online whether it is mobile or emulator
  • Make sure you have internet permission in your app\’s android/app/src/main/AndroidManifest.xml
 <uses-permission android:name=\"android.permission.INTERNET\"/>

Restart the application and try again.


Leave a Reply

Scroll to Top
%d bloggers like this: