Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Launch Android SDK manager - Tools directory doesn't exist? Mac

I'm on mac, I think I've done everything right so far. following these instructions: http://developer.android.com/sdk/installing/adding-packages.html

it says to navigate to tools/ directory in terminal. Here are my steps.

  1. Open terminal

  2. cd Applications result is: No such file or directory

path to my tools directory is as follows

Applications->adt-bundle-mac-x86_64-20130219  ->SDK -> tools

I tried putting my folder onto my desktop, both the tools folder, and my adt-bundle because I could change directory to my desktop, and when I enter ls to the terminal I see my tools folder, and my adt-bundle is there,

but the problem is when I try to enter

cd tools

or

cd adt-bundle(etc...)

it says that it is not a directory.

what do I do?

like image 735
John Curry Avatar asked Apr 29 '13 04:04

John Curry


3 Answers

A lot of answers have been given here that you should go to /{path-to-your-android-sdk}/tools and run ./android.

For me, this did not work. When I opened the android file located at my /{path-to-your-android-sdk}/tools directory with a text editor, it contained the following:

#!/bin/bash
echo The "android" command is no longer available.
echo For manual SDK and AVD management, please use Android Studio.
echo For command-line tools, use tools/bin/sdkmanager and tools/bin/avdmanager
exit 1

So the right approach now, is as stated by @Shijil in his comment.

In the directory for your android sdk, you should use:

For SDK Manager:

cd tools
cd bin
./sdkmanager

For AVD Manager:

cd tools
cd bin
./avdmanager

NB For the last command in each of the options above, you will have to supply additional args depending on the operation you want to perform. An example arg that works for both is --list. Running the commands without any args will only display the possible args you could have passed.

Personally, I think using the GUI in android studio is easier. Especially for linux beginners.

like image 84
Prince Odame Avatar answered Sep 16 '22 14:09

Prince Odame


Here is your "tools" directory for Android Studio in OS X El Captain(Yosemite also has the same path hopefully):

Users/user-name/Library/Android/sdk/tools

In the terminal, just type: Library/Android/sdk/tools and hit enter. And you are in the tools folder.

Please note that user-name refers to the mac user

like image 21
Steele Rocky Avatar answered Sep 20 '22 14:09

Steele Rocky


For me the directory was cd /Users/your_user_name/Library/Android/sdk/tools/ and after that the command was ./android list targets I hope this can help

like image 31
Alexiscanny Avatar answered Sep 20 '22 14:09

Alexiscanny