我是新手。在MAC上安装后,在终端中运行“ 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.
任何人都可以帮助我解决此错误??
答案 0 :(得分:0)
假设您没有创建项目:打开Android Studio或您的IDE,然后create a new flutter project。另外,请确保您正确设置了环境like in the docs。
您试图运行flutter run
的命令旨在在当前目录中编译项目,然后在模拟器或设备上运行它。