Mac配置Flutter环境

1.获取当前文件夹路径

pwd

2.创建文件

touch ~/.zshrc

3.打开文件

open ~/.zshrc

4.编辑文件

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

export PATH=/Users/mmy/Downloads/software_install/android_studio/flutter_sdk/flutter_3.7.9/bin:$PATH

5.重新加载文件

source ~/.zshrc

6.校验是否成功

flutter doctor

7.看官方文档
https://flutter.cn/docs/get-started/install/macos

你可能感兴趣的:(Flutter,flutter,macos,android,studio)