全局配置 flutter MacOS 青岛第一深情 2023-02-02 225 阅读1分钟 1.执行 open .bash_profile 2.修改文件,第三行为自己的flutter SDK路径 3.保存 4.执行source $HOME/.bash_profile 注意:如果你的终端开头是-zsh开头的话,这样设置不会生效,还需要 1.执行:open ~/.zshrc 添加source ~/.bash_profile保存即可 测试:关闭终端重新打开,执行flutter doctor,显示下图即为成功