Where is the CMake install option in Android Studio 3.2.1?

664 Views Asked by At

I am trying to install NDK in Android Studio 3.2.1 and I am following the procedure described here

It says I need to select LLDB, Cmake and NDK form the list in the SDK Manager,but I can only see LLDB and NDK in my computer, and CMake is absent

What do I need to do to install CMake and start coding using C? Or is installing just LLDB and NDK enough?

1

There are 1 best solutions below

9
SamiAzar On BEST ANSWER

According to the docs on developer.android site:

Android Studio supports CMake, which is good for cross-platform projects, and ndk-build, which can be faster than CMake but only supports Android. Using both CMake and ndk-build in the same module is not currently supported.

You can only use one of the Cmake or NDK(as you see NDk is better but only developed for Android).

here is link of documentation for more info.

If you still have problem with installing cmake by sdk manager, make sure you are using 64 bit version of android studio.

for more information about how you can install Cmake or NDK you can see this answer