When i press run flutter it is show "Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project. :"

When i press run flutter it is show "Error: No pubspec.yaml file found. This command should be run from the root of your Flutter project. :"

当我按下 运行 flutter 时显示

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

错误图片

扑博士

我该如何解决?

ua 不是您项目的正确目录。您需要更改您的工作目录:

 cd ali

然后,您可以flutter run