xxxxxxxxxx
// 1. Download Ninja.
// 2. Set environment variable:
CMAKE_MAKE_PROGRAM=ninja
// and make sure Ninja directory is in PATH.
// 3. Download CMake of the version you want.
// 4. In local.properties:
cmake.dir = path/to/your/cmake/bin
// 5. in Gradle:
externalNativeBuild {
cmake {
version "X.YY.Z"
}
}