Failed to connect to github.com port 443 after 75011 ms: Couldn‘t connect to server
·
flutter pub get 的时候报错,没有走代理,设置了android stuido 也不走代理。说明不是走的android stuio 的代理。
于是用git全局代理。
1.为 Git 配置全局代理
在终端中执行以下命令。请务必将命令中的端口号 29290 替换成你代理软件的实际本地端口
git config --global http.proxy http://127.0.0.1:29290
git config --global https.proxy http://127.0.0.1:29290
2.查看当前 Git 的全局代理配置,请在终端中运行以下命令:
# 查看HTTP代理
git config --global --get http.proxy
# 查看HTTPS代理
git config --global --get https.proxy
重新flutter pub get ,成功。
更多推荐
所有评论(0)