Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install NDK with Android SDK Manager

It is said, that it is possible to install NDK with Android SDK manager with the following picture:

enter image description here

Unfortunately, I don't have SDK Plantforms, SDK Tools and SDK Update Sites tabs in my SDK Manager. My picture is following:

enter image description here

So how to install NDK in my situation?

like image 312
Dims Avatar asked Jan 04 '17 18:01

Dims


3 Answers

Since you are using the standalone Android SDK Manager, you'll need to use the sdkmanager command line tool.

  1. Close Android SDK Manager
  2. Start a Command Prompt as Administrator
  3. cd"path to your installation of Android SDK Manager"\tools\bin
  4. sdkmanager ndk-bundle
  5. Accept the License Agreement
  6. Wait a long time. The installation is done without any progress indicator.
  7. When it finally reports done, start Android SDK Manager
  8. Look under Extras and there you'll find Ndk Bundle
like image 75
Ted Lyngmo Avatar answered Sep 27 '22 21:09

Ted Lyngmo


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.

like image 44
ortisenderos Avatar answered Sep 27 '22 20:09

ortisenderos


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. Screenshot of fix

The "Custom Update Site" is the link that manually added repo link. Notice the change from https to http.

like image 42
tanmoy Avatar answered Sep 27 '22 21:09

tanmoy