CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set.

在一台机子上新建了NDK项目,能够正常跑起来,但是用另一台机子拉下来的时候,报如上错误,

只需在Project的gradle 文件里统一构建版本就行

classpath'com.android.tools.build:gradle:3.2.1'

你可能感兴趣的:(CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set.)