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?
Since you are using the standalone Android SDK Manager, you'll need to use the sdkmanager command line tool.
cd
"path to your installation of Android SDK Manager"\tools\bin
sdkmanager ndk-bundle
done
, start Android SDK Manager
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.
If your internet connection is using a proxy, which is most often the case for office networks, the https connection to the Android repo does not work sometimes. As a result you will not see the NDK in the list. If that is the case, copy the https repo link and add the same repo with http, as shown on the picture.
The "Custom Update Site" is the link that manually added repo link. Notice the change from https to http.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With