Android SIMPLE: Error configuring
运行gradle 的assembleDebug或者assembleRelease
如果出现
{
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.
}
{
CMake错误:CMake找不到对应于“忍者”的生成程序。未设置CMAKE_MAKE_程序。您可能需要选择不同的构建工具。
CMake错误:CMake找不到对应于“忍者”的生成程序。未设置CMAKE_MAKE_程序。您可能需要选择不同的构建工具。
}
意思很明确了,配置ninja环境变量
因为cmake采用的是ninja语法
//C:\Users\Administrator\AppData\Local\Android\android-sdk\cmake
在你的android sdk路径下,如果你下载了cmake请配置cmake环境变量宝贝
如有疑问请ps
// cmd ninja --version