【问题标题】:How to fix the proxy setup issue with flutter?如何用颤振解决代理设置问题?
【发布时间】:2019-11-20 21:18:05
【问题描述】:

我是新来的颤振。我们在网络中有一个代理设置。该代理已应用于 android studio,并且运行良好。在创建新应用程序时,它工作正常。但是,获取包不起作用。它返回

Could not resolve URL "https://pub.dartlang.org".

pub get failed (69) -- attempting retry 1 in 1 second...'

set https_proxy=USERNAME:PASSWORD@hostname:port' I tried this code. Even though it is not working

获取包不起作用

【问题讨论】:

    标签: android flutter proxy cross-platform flutter-dependencies


    【解决方案1】:

    您需要在 Flutter 文件夹和项目文件夹上运行这两行代码:

    set https_proxy=USERNAME:PASSWORD@hostname:port
    set http_proxy=USERNAME:PASSWORD@hostname:port
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-01-21
      • 2022-01-12
      • 2021-06-12
      • 2022-08-22
      • 2019-12-23
      • 2021-09-28
      • 2019-06-01
      • 2018-08-22
      相关资源
      最近更新 更多