[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Binding has not yet been initialized in Android Studio – Flutter

Tiempo de lectura: < 1 minuto

Reading time: < 1 minute

To solve this error while working with Flutter in an Android Studio project, you need to go to the main.dart file.

This class is where the application starts with the runApp() method.

You simply need to add the following line of code inside the runApp() method as shown below.

WidgetsFlutterBinding.ensureInitialized();

Once added, the program or application will run correctly.

I hope this helps you!!!

Leave a Comment