Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm on a Mac running Mavericks trying to learn how to develop Android apps (in the process I'm learning bash too).

To run on the emulator they suggest the command android avd.

I always get the error in the title of this post. I've searched all over and the issue seems to lie with changing the PATH.

I've amended .bash_profile as such:

export PATH=/usr/local/bin:$PATH export PATH=/usr/local/bin:$PATH export PATH=/development/dev_android/sdk/tools:$PATH

but it's still not working.

Any thoughts?

share|improve this question
1  
Have you checked $PATH to make sure it's actually set the way you want it to be (echo $PATH)? Simply adding things to ~/.bash_profile does not mean it's actually been sourced by your shell. –  goldilocks Jul 11 '14 at 17:45
    
@goldilocks: you're correct it has not been sourced by my shell. Any tips on how to make that happen? –  MayNotBe Jul 11 '14 at 19:40
    
I just realized after @goldilocks comments that I never restarted the terminal. After restarting the terminal it found the path and I was able to use the command `android avd'. –  MayNotBe Jul 11 '14 at 19:49
    
You can simply source ~/.bash_profile. That file is usually only sourced when you log in, and not when you start a new shell or open a new terminal (but OSX may implement its own additional rules). INVOCATION under man bash explains this. You may also be interested in this. –  goldilocks Jul 11 '14 at 19:49

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.