I need to add C/C++ code in my Android program for which I needed LLDB, CMake, and NDK. I found LLDB and NDK in SDK manager, but CMake is missing from there. I tried manuall
Check in your build.gradle file for your App's module
externalNativeBuild {
cmake {
path "CMakeLists.txt"
}
}
Remove the cmake
section
Re-synchronise the project: go to menu Build -> Refersh Lined C++ Projects
Right-click on the module, such as the app module, select "Link C++ Project with Gradle" from the menu.
You should see a dialog similar to the one shown in below figure.
Click OK.
You can install it in the SDK Manager Tools, but first you must close your opened project. Use configuration on start menu.
If you do the following you may get CMake without any problems:
Check if you are using a 64-bit version of Android Studio. In Android Studio 32 bit, CMake will not appear in SDK Manager.