运行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

 

相关文章:

  • 2021-06-02
  • 2021-10-09
  • 2021-10-11
  • 2021-10-26
猜你喜欢
  • 2021-09-04
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-07
  • 2021-05-24
  • 2021-09-27
相关资源
相似解决方案