cmake版本问题


cmake版本问题

报错:CMake ‘3.6.0’ was not found in PATH or by cmake.dir property. - CMake ‘3.10.2’ found in SDK did not match requested version ‘3.6.0’.

解决方案
在模块中的build.gradle文件中增加

1
2
3
4
5
6
7
android{
externalNativeBuild {
cmake {
version "3.10.2"
}
}
}