mac 环境配置

打开terminal,输入:vim .bash_profile(如果没有则新建,输入:touch .bash_profile)
输入i,回车,则最下面会变成insert,则可进行编辑
按ESC退出编辑,insert会不见
输入:wq!进行保存
输入source .bash_profile让配置进行生效
注意: 如果你使用的是zsh,终端启动时 ~/.bash_profile 将不会被加载,解决办法就是修改 ~/.zshrc ,在其中添加:source ~/.bash_profile

export PATH=/Users/jiangqinbiao/Documents/flutter/bin: P A T H e x p o r t A N D R O I D H O M E = " / U s e r s / j i a n g q i n b i a o / D o c u m e n t s / A n d r o i d / s d k " e x p o r t P A T H = PATH export ANDROID_HOME="/Users/jiangqinbiao/Documents/Android/sdk" export PATH= PATHexportANDROIDHOME="/Users/jiangqinbiao/Documents/Android/sdk"exportPATH={PATH}: A N D R O I D H O M E / t o o l s e x p o r t P A T H = {ANDROID_HOME}/tools export PATH= ANDROIDHOME/toolsexportPATH={PATH}{ANDROID_HOME}/platform-tools
export PUB_HOSTED_URL=https://pub.flutter-io.cn
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn

flutter doctor --android-licenses

你可能感兴趣的:(mac 环境配置)