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


No comments:

Post a Comment

Download the eBook of react js for beginners

ReactJS basically is an open-source JavaScript library which is used for building user interfaces specifically for single page applications...

Popular