在PowerShell窗口尝试用命令
dart compile exe source.dart
把一个HelloWorld程序source.dart
编译成.exe
文件时, 出现以下报错:
Error: Unable to read file: C:\Users\我的用户名\AppData\Local\Temp\83da944d\kernel.dill
../../runtime/vm/dart_api_impl.cc: 2290: error: Dart_ExitScope expects there to be a current isolate. Did you forget to call Dart_CreateIsolateGroup or Dart_EnterIsolate?
图中显示的的Dart SDK版本为
version=3.1.3 (stable) (Tue Sep 26 14:25:13 2023 +0000) on "windows_x64"
请看https://www.cnblogs.com/huang-yi-san/p/17771004.html