3

I am working with Appium (beginner). I have to connect the device connected using USB with Appium. I am using Ubuntu 16.04.

My questions are how to find and set ANDROID_HOME path.

Melebius
  • 11,431
  • 9
  • 52
  • 78
sharmee
  • 31
  • 1
  • 1
  • 3

1 Answers1

6

Before anything download the Android SDK, unzip that file into your home folder then open your $HOME/.bashrc file and add the following lines to locate that folder and set your ANDROID_HOME:

nano $HOME/.bashrc

Now add these lines:

export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools

Now close the current terminal and open a new one. Run echo $ANDROID_HOME and you should see that added path.

Again, make sure you download the one for Linux, not the Windows version.

George Udosen
  • 36,677