Android JNI development solution Could not get version from cmake.dir path problem

Project uses a JNI, on Android Studio NDK developed using a cmake, but open the project reported the following error

Could not get version from cmake.dir path 'D:\Android\Sdk\cmake\3.10.2.4988404'.
- CMake '3.6.0' found in SDK did not match requested version '3.10.2'.

That literally can not find the specified version of cmake cmake in the folder path, only to find the 3.6.0 version does not meet the needs of the project version 3.10.2

Can not find it next chant

Open SDK Manager, switch to the SDK Tools page, find CMake item, check the Show Package Details at the bottom right corner of the post can be expanded CMake see the following version, you can see the 3.6.4 version is installed, and version 3.10.2 is Not installed, we will check the next version 3.10.2, and then click the OK button will start the download version.

 After the download is complete Try Again button to re-Async Gradle clicks, the problem will be solved

 

 

 

 

 

 

 

 

Published 272 original articles · won praise 39 · views 120 000 +

Guess you like

Origin blog.csdn.net/mqdxiaoxiao/article/details/103989139