因为昨天已经在家里的windows机器上开撸了,现在已经摸清套路了,来吧(zick为本文举例用户名称)
Step1:建立flutter clone 路径(无空格全英文)
/Users/zick/zwork/tools/flutter
/Users/zick/zwork/tools/assdk
Step2:从Github clone flutter
git clone https://github.com/flutter/flutter.git /xxx/zwork/tools/flutter
下载AS
image.pngStep3: vim .bash_profile加入以下三个行
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
export PATH="/Users/zick/zwork/tools/flutter/bin:$PATH"
Step4:刷新当前终端窗口
source $HOME/.bash_profile
Step5:flutter doctor 自检(过程中自动安装所需依赖,并告知缺失和错误)
image.pngimage.png
后面就是一直按照flutter doctor提示操作下去即可
网友评论