'flutter' 未被识别为内部或外部命令 [英] 'flutter' is not recognized as an internal or external command
问题描述
我想我添加了环境变量的路径并且我也重新启动了我的电脑,但是颤动"cmd 不工作.请帮帮我.我正在使用 Windows 10(64 位)并收到错误
I think I added the path to environment variables and I restarted my PC too, but the "flutter" cmd is not working. Please help me out. I am using windows 10(64 bit) and getting the error
'flutter' 未被识别为内部或外部命令
'flutter' is not recognized as an internal or external command
推荐答案
要在windows的任何IDE中使用flutter命令,你需要将flutter SDK添加到windows环境中.为此,只需按照以下简单步骤操作:
To use the flutter commands in any IDE in windows you need to add the flutter SDK to the windows environements. To do so just follow the simple steps below:
- 右键单击桌面上的计算机图标(确保它不是快捷方式)并选择属性.
在新打开的窗口左侧点击高级系统设置.
On the left side of the new opened window click on Advanced system settings.
现在在打开的系统属性窗口中选择环境变量.
在新窗口中双击路径打开一个新窗口.
In the new window double click on path to open a new window.
- 在打开的新窗口中点击New并粘贴位于flutter sdk文件夹中的bin文件夹的路径.例如我的路径是这样的:
D:FlutterSDKflutterin
- In the new window opened click on New and paste the path of the bin folder located in the flutter sdk folder. For example my path is this:
D:FlutterSDKflutterin
注意: Flutter SDK 放在哪里都无所谓,把 bin 文件夹的路径复制粘贴到这里即可.
Note: It doesn't matter where you want to place the flutter SDK, just copy and paste the path of the bin folder here.
- 点击确定,确定,确定.
现在一切就绪.尝试重新启动 IDE,甚至更好地重新启动 PC.
Now you're all set. Try restarting the IDE or even better restart the PC.
这篇关于'flutter' 未被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!