參考了一下github上的解決方案

image.png
@aljibbs Please try to add export NO_PROXY=localhost,127.0.0.1 to ~/.bash_profile.
繼續(xù)run flutter doctor,新報錯:
[!] Proxy Configuration
! NO_PROXY does not contain ::1
研究了一會兒,發(fā)現(xiàn)可以給NO_PROXY設(shè)置多個值,跟在后面用,隔開即可
最終修復方案如下:
export NO_PROXY=localhost,::1,127.0.0.1,LOCALHOST
當然最好還是寫到bash_profile里面.
再次run flutter doctor

image.png
??????done