Dart报错汇总

柔情只为你懂 2023-07-11 15:12 110阅读 0赞

1.Dart_LoadScriptFromKernel: The binary program does not contain ‘main’
在这里插入图片描述
解决方案:保存一下(Ctrl+S),然后在code run,就OK了。

Error: No pubspec.yaml file found.
This command should be run from the root of your Flutter project.
Do not run this command from the root of your git clone of Flutter.

在这里插入图片描述
打开项目总文件夹运行,不要打开上一级目录运行
D:\Projects\flutter\Demo\flutter_app> flutter run( 项目名)这里打开
D:\Projects\flutter\Demo> flutter run 不要在这里打开

发表评论

表情:
评论列表 (有 0 条评论,110人围观)

还没有评论,来说两句吧...

相关阅读

    相关 Feign项目汇总

    近日,在项目中使用到了Feign项目,却出现各种问题,于是将遇到的错误写下来,希望能帮到你。   spring boot版本为1.5.9 ,cloud版本也不高。 接口无法

    相关 VS问题汇总

    记录软件使用过程中遇到的各种报错,下次遇到时可以直接解决。 1. “operator new\[\]”: 5 个重载中没有一个可以转换所有参数类型 参考:[https:/