instructions

Just record compilation of flutter engin encountered pit, Specific reference https://github.com/flutter/flutter/wiki/Compiling-the-engine#compiling-for-android-from-macos-or-linux official document compilation process, Or https://www.jianshu.com/p/6519ed563fcc.

Proxy setup (very important)

Do not use the CMD command line set http_proxy, set https_proxy is too much of a trap, you spend a little money to buy a proxy. Recommended netch proxyfier, Win2Socks software, such as the agent of global change, otherwise there will be a variety of questions for less than document.

Setting environment variables

DEPOT_TOOLS_WIN_TOOLCHAIN=0

If your Visual Studio is not installed on drive C by default, GYP_MSVS_OVERRIDE_PATH=”D: Program Files (x86)\Microsoft Visual Studio\2019\Community” GYP_MSVS_VERSION=2019 WINDOWSSDKDIR=”C:\Program Files (x86)\Windows Kits\10″

Screenshot after successful compilation