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
相关的配置问题会被flutter自动修复
可能导致该问题的原因:
更新了visual studio 版本
或
VS build tool 版本