It ran smoothly in the beginning, but after a while I get this :

Downloading windows-x64 tools... Download failed. URL: https://storage.googleapis.com/flutter_infra/flutter/1c26bf8c4b55f4fa5f0d175768a1a0cc115c70b2/windows-x64/artifacts.zip Error: 403 Forbidden"

I have tried to change flutter directory, but it didn't help.


Solution 1: Günter Zöchbauer

If you are behind a proxy or firewall follow the instructions in these documents

https://flutter.io/community/china

https://www.dartlang.org/tools/pub/troubleshoot#pub-get-fails-from-behind-a-corporate-firewall

export https_proxy=hostname:port

https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#hot-reload-not-working

export NO_PROXY=127.0.0.1,localhost


Solution 2: Pouyan Asadi

I had Same issue and i resolve that with do following tips.

if you are Forced to use proxy for any reason, you need to set proxy true.

to do that, at first run this in terminal:

On Linux/macOS:

export https_proxy=hostname:port 

On Windows Command Prompt:

set https_proxy=hostname:port 

On Windows PowerShell

$Env:https_proxy="hostname:port"


Solution 3: Sonu kumar

I am using linux , in terminal i ran

export https_proxy=10.32.0.1:8080
// It is my proxy:port

and then ran

flutter run