错误一:

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    X cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    X Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

 

 

错误二:

[!] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

运行:

flutter doctor --android-licenses

全部输入 Y 回车

错误三:

[!] Network resources
    X A network error occurred while checking "https://github.com/": 信号灯超时时间已到

将以下全部复制粘贴到C:\Windows\System32\drivers\etc\hosts里面保存之后。

192.30.253.113     github.com
192.30.252.131     github.com
185.31.16.185      github.global.ssl.fastly.net
74.125.237.1       dl-ssl.google.com
173.194.127.200    groups.google.com
192.30.252.131     github.com
185.31.16.185      github.global.ssl.fastly.net
74.125.128.95      ajax.googleapis.com
192.30.255.112     github.com git
185.31.16.184      github.global.ssl.fastly.net 
192.30.253.112     github.com 
192.30.253.119     gist.github.com
151.101.184.133    assets-cdn.github.com
151.101.184.133    raw.githubusercontent.com
151.101.184.133    gist.githubusercontent.com
151.101.184.133    cloud.githubusercontent.com
151.101.184.133    camo.githubusercontent.com
151.101.184.133    avatars0.githubusercontent.com
151.101.184.133    avatars1.githubusercontent.com
151.101.184.133    avatars2.githubusercontent.com
151.101.184.133    avatars3.githubusercontent.com
151.101.184.133    avatars4.githubusercontent.com
151.101.184.133    avatars5.githubusercontent.com
151.101.184.133    avatars6.githubusercontent.com
151.101.184.133    avatars7.githubusercontent.com
151.101.184.133    avatars8.githubusercontent.com

 

错误四:

[!] Visual Studio - develop Windows apps (Visual Studio Enterprise 2019 16.11.25)
    X Visual Studio is missing necessary components. Please re-run the Visual Studio installer for the "Desktop
      development with C++" workload, and include these components:
        MSVC v142 - VS 2019 C++ x64/x86 build tools
         - If there are multiple build tool versions available, install the latest
        C++ CMake tools for Windows
        Windows 10 SDK

那是没有安装  Visual Studio 安装就好了,如果不开发  Windows  桌面程序,可以不安装,不用理会 

如果安装了 Visual Studio 打开 Visual Studio Installer  

 

系统是什么就安装什么。