Android studio,在 linux 上构建 flutter 期间构建错误

问题描述 投票:0回答:0

在尝试将 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 正在按预期运行。 不确定为什么会遇到错误。

linux flutter android-studio dart desktop-application
© www.soinside.com 2019 - 2024. All rights reserved.