TOC
Flutter HTTP host https://maven.google.com/
is not reachable in Windows 10
It shows the following error messages after executing flutter doctor
in terminal prompt in Windows 10.
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19044.1586], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.2)
[√] Android Studio (version 4.1)
[√] Connected device (4 available)
[!] HTTP Host Availability
X HTTP host https://maven.google.com/ is not reachable. Reason: An error occurred while checking the HTTP host:
信号灯超时时间已到
X HTTP host https://cloud.google.com/ is not reachable. Reason: An error occurred while checking the HTTP host:
信号灯超时时间已到
How to handle HTTP host https://maven.google.com/ is not reachable
?
1.Get the port of your http proxy
For example, my https proxy port is 10809, I get it in Option Settings
in the v2 proxy. V2 socks port is 10808, https port is sock port +1 which is 10809;
2.set https_proxy environment variable
2.1 Right click the Windows
icon on the Windows taskbar, select System
;
2.2 click Advanced System settings
in the Settings
window, then switch to Advaned
tab on System Properties
;
2.3 click Environment Variables
on the Advanced
tab, click New
to create a new environment variable.
Add following variables and click OK
Button.
variable1 name: `https_proxy`, variable1 value: `https://127.0.0.1:10809`
After adding https_proxy
Environment variable, open a new command prompt and run flutter doctor
Note: opening a new command prompt is necessary
$ flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.3, on Microsoft Windows [Version 10.0.19044.1586], locale zh-CN)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.11.2)
[√] Android Studio (version 4.1)
[√] Connected device (4 available)
[√] HTTP Host Availability
• No issues found!
「点个赞」
点个赞
使用微信扫描二维码完成支付
