Can't 运行 flutter project due to error VERBOSE.dart 错误,隔离错误

Can't run flutter project due to error VERBOSE.dart error, isolate error

当我尝试在 VS 代码中 iOS 模拟器上 运行 我的 flutter-project 代码时,我在控制台上收到以下错误:

Launching lib/main.dart on iPhone 11 Pro in debug mode...
lib/main.dart:1
Xcode build done.                                           24.4s
[VERBOSE-2:shell.cc(103)] Dart Error: Can't load Kernel binary: Invalid SDK hash.
[VERBOSE-2:dart_isolate.cc(171)] Could not prepare isolate.
[VERBOSE-2:runtime_controller.cc(415)] Could not create root isolate.
[VERBOSE-2:shell.cc(588)] Could not launch engine with configuration.

提前致谢。

能不能先删除bin/cache文件夹,然后运行app

嗨!

在我的例子中,错误是由 IDE.

的强制关闭引起的

手动选择库后,我确定了导致问​​题的库,在没有它的情况下更新了项目,然后再次用它更新了项目。

这样问题就解决了。

希望对你有所帮助,如果有,请举报。