zl程序教程

您现在的位置是:首页 >  移动开发

当前栏目

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

flutter The not of File No from be
2023-09-14 09:04:26 时间

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.

翻译:
错误:找不到pubspec.yaml文件。
此命令应从Flutter项目的根目录运行。
不要从Flutter的git克隆的根目录运行此命令

解决:

只需要将根目录切换到当前工程文件即可:如下
cd flutter_app02,切换到当前工程
然后在flutter run运行项目即可!