hi i am using ubuntu 12.04. and in ~/.bashrc file I set following things
export ANDROID_HOME=/home/nilkash/Downloads/android-sdk-linux/platform-tools
I tried
sudo nano /etc/profile
and appended these after the fi export JAVA_HOME=/usr/lib/jvm/java-8-oracle export ANDROID_HOME=/home/dev/Android/Sdk export PATH=$PATH:$JAVA_HOME/bin:$ANDROID_HOME/platform-tools:ANDROID_HOME/tools export JAVA_HOME export ANDROID_HOME
and after saving the file
exec bash
these got my android command working, I had set PATH in .bashrc which was not working for me
Hope It'll help somebody