Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open Android SDK manager from terminal? [duplicate]

I have CD'd into my android tools directory in the terminal. I tried typing 'android' and hitting enter and I also tried typing 'android sdk' and hitting enter but the sdk manager would not come up.

Any solutions or advice to help me understand what I'm doing wrong?

like image 237
Ebad Saghar Avatar asked Jun 23 '14 18:06

Ebad Saghar


People also ask

How do I open SDK manager in terminal?

From Eclipse (with ADT), select Window > Android SDK Manager. On Windows, double-click the SDK Manager.exe file at the root of the Android SDK directory. On Mac or Linux, open a terminal and navigate to the tools/ directory in the Android SDK, then execute android sdk .

How do I open Android SDK Manager?

To open the SDK Manager from Android Studio, click Tools > SDK Manager or click SDK Manager in the toolbar. If you're not using Android Studio, you can download tools using the sdkmanager command-line tool.


1 Answers

From outside the tools directory (obviously, you need to change to suit your path taste):

$ sudo /opt/android-sdk-macosx/tools/android

From within the tools directory (note the leading dot and slash):

$ cd /opt/android-sdk-macosx/tools/
$ sudo ./android 

Related: you should have both ANDROID_SDK_ROOT and ANDROID_NDK_ROOT set in your environment. ANDROID_SDK_ROOT is used by the (now deprecated) ddms program. ANDROID_NDK_ROOT is used by various NDK tools. See Recommended NDK Directory? on the Android NDK user list.

like image 187
jww Avatar answered Oct 26 '22 05:10

jww