【发布时间】:2019-02-13 09:20:05
【问题描述】:
我下载 ndk cmake 和 LLDB 用于 ndk 开发。然后我创建了一个项目 c++代码,应用编译错误。
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.
External native generate JSON debug: JSON generation completed with problem
FAILURE: Build failed with an exception.
\* What went wrong:
Execution failed for task ':app:generateJsonModelDebug'.
com.android.ide.common.process.ProcessException: Error configuring
【问题讨论】:
-
您使用 SDK 管理器下载了 CMake 对吗?不是来自其他地方。我的 Android SDK 目录中有三个 cmake 版本,它们都在其
bin子目录中包含ninja.exe。 -
我通过Android studio下载了CMake,在/Users/fish/Library/Android/sdk/cmake/3.10.2.4988404/bin目录下有ninja
标签: android-studio android-ndk