在尝试将 android studio 附带的默认 flutter 脚本构建为 linux 桌面应用程序时,遇到以下错误消息:
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
你帮助我解决问题的努力将是非常值得的。
检查了 cmake 在我的设备上的安装,cmake 正在按预期运行。 不确定为什么会遇到错误。