user2600095 user2600095 - 7 months ago 25
Android Question

How to get Android command line tools to work?

I cannot figure out how to get my Android command line tools to work. I had run the following commands, but when I type in Android avd, the output is

bash: android: command not found
. Does anyone have any advice on how to get the Android command line tools to work? I have installed the SDK, etc. I am not sure what to do.

export Android_Home=/Users/username/Downloads/adt-bundle-mac-x86_64-20131030/sdk/tools


One obvious problem with this:

export Android_Home=/Users/username/Downloads/adt-bundle-mac-x86_64-20131030/sdk/tools
export PATH=$PATH:$ANDROID_HOME/tools that Android_Home is not the same as ANDROID_HOME. Environment variable names on Mac OS X (and other Unix systems) are case-sensitive. Try:

export ANDROID_HOME= ...

Next, in a comment OP wrote:

I can't find .bash_profile

Well, you just have to create it under your home directory. Open a Terminal, and type:

nano ~/.bash_profile 

Additionally, I think in

export ANDROID_HOME=/Users/username/Downloads/adt-bundle-mac-x86_64-20131030/sdk/tools

... the /tools bit is too much. SDK home should be just /Users/username/Downloads/adt-bundle-mac-x86_64-20131030/sdk/, then in PATH you want to have $ANDROID_HOME/tools.