How to install Android NDK using command line?

Now Android NDK can be installed directly from the SDK manager, and not just as a separate download. How to install the NDK package from the command line?

I tried:

android sdk update -u -n -a 

but the NDK package does not appear in the list. It is displayed only in the user interface.

+8
android android-ndk
source share
2 answers

Android Studio 2.3 has sdkmanager tool

It is located in the sdk directory (i.e. ~ / Android / Sdk / tools / bin)

for a list of installed and available packages, go to the directory where the sdkmanager binary is located and enter ./sdkmanager --list

to install NDK directly, use ./sdkmanager "ndk-bundle"

( ./sdkmanager "lldb;2.3" , ./sdkmanager "cmake;3.6.3155560" )

https://developer.android.com/studio/command-line/sdkmanager.html

+7
source share
+1
source share

All Articles