11

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?

Ebad Saghar
  • 1,107
  • 2
  • 16
  • 41

1 Answers1

22

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.

jww
  • 97,681
  • 90
  • 411
  • 885
  • 3
    The android command is no longer available.For manual SDK and AVD management, please use Android Studio. For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager – Shijil Mar 21 '17 at 06:40
  • For me, after I did this , and set two roots in ~/.bashrc, it still does not work. – Francis Bacon Jun 08 '18 at 08:57