How to set ANDROID_HOME path in Ubuntu

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.

1 Answer

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.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like