//1.下载Xcode , 最好是在appstore下载
//2.下载sdk
git clone -b beta [https://github.com/flutter/flutter.git](https://github.com/flutter/flutter.git)**
// 3.设置环境变量
//3.1 打开 home
输入: vim ./.bash_profile
//3.2 (输入) enter
//3.3 (输入) i
//3.4 复制变量
export PUB_HOSTED_URL=[https://pub.flutter-io.cn](https://pub.flutter-io.cn/)
export FLUTTER_STORAGE_BASE_URL=[https://storage.flutter-io.cn]
(https://storage.flutter-io.cn/) export PATH=`pwd`/flutter/bin:$PATH export
PATH=$HOME/flutter/bin:$PATH
// 3.5 esc
//3.6 :wq
// 3.7 enter
//4. 关闭终端,重新打开
//5. 输入 echo $PATH 看看flutter 是否配置成功
//6. flutter doctor (提示找不到命令,第三步重来)
//7.直到 6 完全完成后,恭喜你已经配置成功
网友评论