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.