Windows 10 上搭建Flutter开发环境

Git https://git-scm.com/downloads

选择Git分支下载(哪个快选哪个)

git clone -b beta https://github.com/flutter/flutter.git

git clone -b alpha https://github.com/flutter/flutter.git

git clone -b dev https://github.com/flutter/flutter.git

git clone https://github.com/flutter/flutter.git

git clone git://github.com/flutter/flutter.git

配置用户环境变量(配置完最好重启一下)

PUB_HOSTED_URL=https://pub.flutter-io.cn

FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn 

配置系统变量(git 下载的flutter目录下bin)

到flutter下载目录找到flutter_console.bat双击运行

输入flutter doctor 运行

在AS中下载插件flutter

配置相关目录

猜你喜欢

转载自www.cnblogs.com/QQ80565970/p/9697811.html