skip to Main Content

The error looks like this:

E/flutter ( 3378): [ERROR:flutter/runtime/dart_isolate.cc(144)] Could not prepare isolate.
E/flutter ( 3378): [ERROR:flutter/runtime/runtime_controller.cc(422)] Could not create root isolate.
E/flutter ( 3378): [ERROR:flutter/shell/common/shell.cc(609)] Could not launch engine with configuration.

I am getting this error when I use StatefulWidget and StatelessWidgets. I don’t get these errors when I write code without using them.

Please help me to fix this error.

2

Answers


  1. The Stackoverflow Thread on "Flutter Could not prepare to run the isolate" might be helpful.

    If you are facing the problem that even if you have the main method in main.dart inside your lib folder, then you could try the following.

    flutter clean
    flutter run
    
    Login or Signup to reply.
  2. try flutter clean.

    flutter clean 
    flutter pub get
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search