新人一枚,刚搭建好cocos2d-x的windows环境,然后新建了一个hello world项目,按照官方文档将项目导入到android studio,在编译的时候出现了以下错误:
错误: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 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.
Configuration failed.
FAILURE: Build failed with an exception.
- What went wrong:
A problem occurred configuring project ‘:helloworld’.
executing external native build for cmake F:\cocosProjects\helloworld\CMakeLists.txt
-
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. -
Get more help at https://help.gradle.org
BUILD FAILED in 4s
百度了好久,解决不了,有大佬能帮一下吗,愁死了