执行flutter doctor --android-licenses报错

283 阅读1分钟

报错信息

The proxy server URL extracted from HTTP_PROXY or HTTPS_PROXY environment variable could not be parsed. Either specify the correct URL or unset the environment variable.

解决方法

Windows

在cmd中执行如下的命令

    set HTTP_PROXY=http://127.0.0.1:9870
    set HTTPS_PROXY=http://127.0.0.1:9870

之后,再次尝试即可

Mac

在bash.profile后面添加:

export HTTP_PROXY=http://127.0.0.1:9870
export HTTPS_PROXY=http://127.0.0.1:9870

之后,再次尝试即可