Monday, 14 November 2016

ANDROID_HOME environment variable in ubuntu?

In this post i will show you how to set the ANDROID_HOME environment in ubuntu.Sometime after installing android studio you have noticed this issue of warning.

ANDROID_HOME environment



The ANDROID_HOME environment variable is not set or it points to a non-existent directory.
You will not be able to perform any build-related operations for Android.

So download the android and get the android download folder path like.

/home/wantcode/android

In this above line where wantcode is my system username and android is the folder where i downloaded android tools.So you can set the android path like.


export ANDROID_HOME=/home/wantcode/android/
export PATH=$PATH:$ANDROID_HOME:/home/wantcode/android/tools/
export PATH=$PATH:$ANDROID_HOME:/home/wantcode/android/platform-tools

After setting you can try to print the android path like.


echo $ANDROID_HOME


Featured post

How to create dynamic schema in mongodb

Sometime what we need in our application is to create mongodb schema for collection and some of our collection schema are same but names are...

Popular Posts