当我试图在VS代码中的iOS模拟器上运行我的颤动项目代码时,我在控制台上得到了以下错误:
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.提前谢谢。
发布于 2021-06-26 21:18:04
您是否可以删除bin/cache文件夹,然后运行应用程序
发布于 2021-10-04 12:39:28
嗨!
在我的例子中,错误是由IDE的强制关闭引起的。
在手动选择库之后,我找出了导致问题的库,更新了没有它的项目,并用它再次更新了项目。
有了这个,问题就解决了。
希望我能帮上忙,如果是,请标记。
https://stackoverflow.com/questions/68136517
复制相似问题