Dart报错汇总

1.Dart_LoadScriptFromKernel: The binary program does not contain ‘main’
Dart报错汇总_第1张图片
解决方案:保存一下(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.

Dart报错汇总_第2张图片
打开项目总文件夹运行,不要打开上一级目录运行
D:\Projects\flutter\Demo\flutter_app> flutter run( 项目名)这里打开
D:\Projects\flutter\Demo> flutter run 不要在这里打开

你可能感兴趣的:(Dart)