当前位置:   article > 正文

flutter设置代理引入插件_flutter代理插件

flutter代理插件

Running "flutter packages get" in flutter_app...                                                                  

Got socket error trying to find package ****** at https://pub.dartlang.org.

或 在终端输入 :curl google.com

出现:curl: (7) Failed to connect to google.com port 80: Timed out

解决方法:

终端输入

set http_proxy=127.0.0.1:1080

set https_proxy=127.0.0.1:1080

然后终端输入

curl google.com

显示

<HTML><HEAD><meta http-equiv="content-type" content="text/html;charset=utf-8">
<TITLE>301 Moved</TITLE></HEAD><BODY>
<H1>301 Moved</H1>
The document has moved
<A HREF="http://www.google.com/">here</A>.
</BODY></HTML>
就ok

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/花生_TL007/article/detail/332469
推荐阅读
相关标签
  

闽ICP备14008679号