Flutter (Mac)开发 vscode不能热更新,报错Exception attempting to connect to the VM Service: SocketException: OS

        正常情况下,在vscode中进行Flutter开发,使用命令Flutter run 启动项目,并在终端输入R或者r进行热更新进行调试程序,但是迁移到mac上进行开发后一直不能热更新,连接过程中报错:Exception attempting to connect to the VM Service: SocketException: OS Error: Connection refused

        直接变成在终端单纯的输入字母R或者r了,没有任何作用(新电脑的环境配置就是这么让人崩溃!!!)最后解决方案:打开系统设置-->隐私与安全

Flutter (Mac)开发 vscode不能热更新,报错Exception attempting to connect to the VM Service: SocketException: OS_第1张图片

勾选App Store和被认可的的开发者并开启下面的允许配件连接!!!

你可能感兴趣的:(Flutter,爬坑日记,flutter,macos,vscode)