【发布时间】:2018-05-16 16:02:10
【问题描述】:
我尝试在此处关注Get Stated https://flutter.io/setup-windows/
得到了
>flutter run
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 create somefolder-flutter help create创建以获取更多详细信息。然后cd到某个文件夹和flutter run那里。有一些 IDE 可以为您自动执行此操作:Visual Studio Code、IntelliJ IDEA、Android Studio。 -
@RémiRousselet 为什么文档中没有说!?
-
文档中提到了它。 flutter.io/get-started/codelab
标签: flutter