CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM

     在导入一个新项目的时候出现了这个错,在此记录一下

     先把错误LOG贴出来:

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

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

A problem occurred configuring project ':app'.
> executing external native build for cmake ****\app\CMakeLists.txt

引起错误的原因就是这个CMake,之前没接触过这个东西,遇到这总问题只能在网上疯狂寻找答案,出现类似的问题的人还是有那么多的,查到的答案有以下几种:

1.删除下载好的ndk  cmake   LLDB  在重新下载ndk  cmake   LLDB

2.更换NDK

3.环境没有搭好

4.将CMAKE_MAKE_PROGRAM项后面的路径设置

评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值