本文介绍了'flutter'不被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为我已将路径添加到环境变量中,并且我也重新启动了PC,但是颤振"提示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

推荐答案

要在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:

  1. 右键单击桌面上的计算机图标(确保其不是快捷方式),然后选择属性.

在新打开的窗口的左侧,点击高级系统设置.

On the left side of the new opened window click on Advanced system settings.

  1. 现在在打开的系统属性窗口中,选择环境变量.

在新窗口中双击路径上以打开新窗口.

In the new window double click on path to open a new window.

  1. 在打开的新窗口中,单击 New ,然后将 bin 文件夹的路径粘贴到flutter sdk文件夹中.例如,我的路径是这样的: D:\ FlutterSDK \ flutter \ bin
  1. 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:\FlutterSDK\flutter\bin

注意:不要在任何地方放置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.

  1. 单击确定",确定",确定".

现在您已经准备就绪.尝试重新启动IDE,甚至更好地重新启动PC.

Now you're all set. Try restarting the IDE or even better restart the PC.

这篇关于'flutter'不被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

05-29 17:40
查看更多