How to set ANDROID_HOME environment variable in ubuntu?

How to set ANDROID_HOME environment variable in ubuntu?

In this post we will give you information about How to set ANDROID_HOME environment variable in ubuntu?. Hear we will give you detail about How to set ANDROID_HOME environment variable in ubuntu?And how to use it also give you demo for it if it is necessary.

In this post i want to share with you how to set android home environment variable in ubuntu os. when i fatch this issue i tired to solve this issue because when i run my app i always found following error :

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.

I found above error if i already install android in my ubuntu 14.04 system. But at last i found solution from my senior. First i download my android and and put that on any where that downloaded folder of android but don’t forgot to get to take path of that folder like It is my android path:

/home/hari/android

My android tools and platform-tools etc are in android folder and hari is username of my system. So you can set ANDROID_HOME environment variable path this way:

export ANDROID_HOME=/home/hari/android/

export PATH=$PATH:$ANDROID_HOME:/home/hari/android/tools/

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

After this you can also try to print that variable you can find value on ANDROID_HOME.

echo $ANDROID_HOME

Hope this code and post will helped you for implement How to set ANDROID_HOME environment variable in ubuntu?. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

Leave a Comment

Your email address will not be published. Required fields are marked *

  +  37  =  39

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US