目录

flutter-windows-编译报错-is-not-a-full-path-to-an-existing-compiler-tool.

flutter windows 编译报错: is not a full path to an existing compiler tool.

flutter 编译 Windows 时出现类似以下报错

CMake Error at CMakeLists.txt:2 (project):
  The CMAKE_CXX_COMPILER:

    C:\Program Files\Microsoft Visual Studio\2022\Professional\VC\Tools\MSVC\14.42.34433\bin\Hostx64\x64

  is not a full path to an existing compiler tool.

解决:

尝试在外部或项目文件夹下运行指令 flutter doctor

https://i-blog.csdnimg.cn/direct/1e322bae8007476b8c22b889158734d0.png

相关的配置问题会被flutter自动修复

可能导致该问题的原因: 更新了visual studio 版本VS build tool 版本