I'm trying to set up selendroid in ubuntu for mobile app testing purposes.

First I installed JAVA from ubuntu software center.

Then I installed android SDK and I've set path in .bashrc as follows:

export PATH=${PATH}:/opt/android-sdk-linux/tools
export PATH=${PATH}:/opt/android-sdk-linux/platform-tools
export ANDROID_HOME=/opt/android-sdk-linux

I've installed android sdk to opt folder, so the path is as shown above.

I've eclipse Mars.2 installed. In eclispe - using Install new software I've installed Android SDK related plugins and in

Window - Preferences - Android as shownandroid-path-set

I've created a maven project with testng, selenium-java, selendroid-client, selendroid-standalone in POM.xml and created a sample selendroid test case.

When executed

SEVERE: Error building server: Environment variable 'ANDROID_HOME' was not found!

is shown.

In terminal when I echo $ANDROID_HOME it is showing /opt/android-sdk-linux.

How to fix this issue? Thanks in Advance. Please let me know if more clarification is needed.


Did you try echo $PATH? Type this command on your terminal(I am using Ubuntu 16.0.4). After that, you should find Android SDK directory included like:


If so is the case, then your ANDROID_HOME has been set correctly otherwise it needs to be set. Set the android home variable once again and check if it appears in the result.

| improve this answer | |

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.