How to update Android NDK in place?

18.9k views Asked by At

I used to download the Android NDK as new version were pubished to the devloper website.

It appears Google has recently updated the developer website and removed direct NDK download links, and replaced them with a a bunch of circular references that eventually lead to the SDK download. The SDK download page does not include the NDK. The closest I have found to a download and NDK is Download Android Studio and SDK Tools.

Running $ sudo /opt/android-sdk-macosx/tools/android does not offer a way to update the NDK.

How do I update the NDK in place using the existing NDK or one of the SDK tools?

Or where is the download of the actual NDK located?


To be clear, I use ant and ndk-build from the command line. I don't use Eclipse or Android Studio. Eclipse and the Android plugin is broken; and Android Studio does not really support NDK and JNI.

Plus, I don't really want to learn another editor since I kind of know Eclipse, and I know already how to do it from the command line (so there's no need for an editor).

1

There are 1 answers

3
Gene Bo On
  1. In Android Studio, go to Tools (top-menu item) > Android > SDK Manager
  2. Click SDK Tools tab
  3. Scroll down and you will see NDK as an option, with detail if an update is available