1

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?

MayNotBe
  • 113
  • 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
  • http://stackoverflow.com/questions/10969753/android-command-not-found – Ciro Santilli OurBigBook.com Mar 03 '17 at 09:03

0 Answers0