1.终端输入命令:
vi .bash_profile
2.复制:
export PATH="$PATH:/Users/dy/Desktop/flutter/bin:$PATH"
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
GRADLE_HOME=//Users/dy/Desktop/gradle-7.6
export GRADLE_HOME
export PATH=$PATH:/Users/dy/Desktop/gradle-7.6/bin
3.执行:
source ~/.bash_profile
4.检查:
flutter doctor
标签:Users,flutter,Mac,export,dy,PATH,Desktop,Flutter,搭建 From: https://www.cnblogs.com/mociguliang/p/17070134.html