It is said, that it is possible to install NDK with Android SDK manager with the following picture:
Unfortunately, I don't have SDK Plantforms
, SDK Tools
and SDK Update Sites
tabs in my SDK Manager. My picture is following:
So how to install NDK in my situation?
The android's standalone sdk manager [second picture] differs from the one integrated in Android Studio[first picture]. The standalone has the basics for android developing whereas the Android Studio's integrated sdk manager, located in Tools > Android > SDK Manager, adds more useful tools, such as the ndk, Cmake* and LLDB* [* in android studio 222 version] (the ones highlighted).
So you have two options, if you are using Android Studio, using the integrated sdk manager to directly install the ndk or you could manually download the ndk and add the path to your system variables so your build environment is aware of it.