为什么不能在 VSCode 中创建新的Flutter项目?每次我运行“ flutter创建项目名称” *时,都会说Flutter无法识别。我同时安装了Flutter和Dart扩展。
flutter : The term 'flutter' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct and try again.
At line:1 char:1
+ flutter create agregatorpro
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (flutter:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
答案 0 :(得分:0)
尝试用cmd编写where flutter
:它应该为fld sdk提供路径,如果不是,则添加'your_path'/flutter/bin
(在这里,“ your path”是提取flutter的位置:通常是C:/src
)添加到您的环境变量中。
一旦识别出抖动,然后运行flutter doctor
。