在Flutter中,当我编写命令“ flutter build apk”时出现错误“错误:找不到pubspec.yaml文件

时间:2019-12-21 18:35:24

标签: flutter

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.

请注意,我之前多次执行同一项目。

1 个答案:

答案 0 :(得分:0)

您在命令提示符下的错误文件夹中。导航到放置pubspec.yaml的项目的根目录。