由于错误VERBOSE.dart错误,无法运行flutter项目,隔离错误

问题描述

当我尝试在 iOS 模拟器上以 VS 代码运行我的 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