Flutter environment configuration (window10 environment)

First, download the corresponding flutter SDK

 https://flutter.cn/docs/get-started/install/windows#

Second, unzip the SDK, random location. As shown below

 

 Third, unzipped flutter open the folder, find the bin, copy the address shown below

 

 Fourth, set the environment variable -

  Environment Variables -> System Variables find -> Path -> Edit -> New -> Paste - Save

 

Fifth, the domestic mirroring configuration.

Environment variables -> Find a user variable -> click New

FLUTTER_STORAGE_BASE_URL 值:https://storage.flutter-io.cn
PUB_HOSTED_URL 值:https://pub.flutter-io.cn

 

 

Sixth, restart the computer

Seven, in the lower left corner of the desktop enter cmd, open a command prompt. Enter flutter doctor. Check the configuration items. As shown below:

 

Guess you like

Origin www.cnblogs.com/qiu-Ann/p/12461628.html