Flutter Could not prepare to run the isolate

Posted by

Error:

[ERROR:flutter/runtime/dart_isolate.cc(143)] Could not prepare isolate. E/flutter ( 7477): [ERROR:flutter/runtime/runtime_controller.cc(385)] Could not create root isolate. Restarted application in 6,091ms.

Solution:

  • please check whether your Flutter Project containsmain.dart in lib folder, if not, create it.
  • check your code like this:
  • Check device or emulator has enough storage, if not uninstall some for making space
  • remove the cache folder rm -rf ${FLUTTER_ROOT}/bin/cache
  • flutter clean
  • flutter run
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x