How to fix the proxy setup issue with flutter?

9,734

You need to run these 2 lines on both your Flutter folder and your project folder:

set https_proxy=USERNAME:PASSWORD@hostname:port
set http_proxy=USERNAME:PASSWORD@hostname:port
Share:
9,734
karthik
Author by

karthik

Updated on December 12, 2022

Comments

  • karthik
    karthik over 1 year

    I am new to flutter. We have a proxy setup in the network. The proxy is already applied to android studio and it is working fine. While creating a new application it is working fine. But, get packages is not working. It returns

    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

    Get packages is not working