我只是运行dart2aot main.dart main.aot将我的dart文件编译成二进制文件,它在windows上运行得很好,但是当我在另一台机器上尝试在Linux OS (Ubuntu)上使用dartaotruntimemain.aot时,它不能工作,给我那个错误:
VM initialization failed: Snapshot not compatible with the current VM configurationrequires 'product use_bare_in
Snapshot not compatible with the current VM configuration: the snapshot requires 'release no-dwarf_stack_tracesasserts" "use_field_guards" "use_osr" no-code-comments x64-win
no-"null_safety" nnbd-experiment' but the VM(dart:asyn