Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
174 views
in Technique[技术] by (71.8m points)

'flutter' is not recognized as an internal or external command

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' is not recognized as an internal or external command

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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. Right click on the computer icon in desktop (make sure its not a shortcut) and select properties.

enter image description here

On the left side of the new opened window click on Advanced system settings.enter image description here

  1. Now in the system properties window that opens select Environment Variables.enter image description here

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

enter image description here

  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:FlutterSDKflutterin

Note: It doesn't matter where you want to place the flutter SDK, just copy and paste the path of the bin folder here.

enter image description here

  1. Click OK, OK, OK.

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

56.9k users

...