美文网首页
VSCode编程遇到Dart_LoadScriptFromKer

VSCode编程遇到Dart_LoadScriptFromKer

作者: 原味丿丿咖啡Vitas | 来源:发表于2020-04-29 18:18 被阅读0次
VSCode编写代码遇到:Dart_LoadScriptFromKernel: The binary program does not contain 'main'.错误
image.png
原因是编写了代码,但是没有保存文件,command+s保存文件后再次运行即可(记得每次修改代码后command+s,不然运行的就是你未修改之前的代码)
或者设置为自动保存
image.png

相关文章

网友评论

      本文标题:VSCode编程遇到Dart_LoadScriptFromKer

      本文链接:https://www.haomeiwen.com/subject/mfvnwhtx.html