Today now in this post i will share with you about How to set ANDROID_HOME environment variable in ubuntu. So now in this post i want to show you how to set android home environment variable in ubuntu os. when we fetch this issue i was tired to solve this issue because when i was run my app i always found the 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 was found the above error if i already install android in my ubuntu 14.04 system. But at last i was found a solution from my senior. At first i was download my android and then put that on any where that downloaded folder of android but please don’t forgot to get to take the path of that folder as like It is my android path:
/home/hari/android
Okay my android tools and platform-tools etc are in android folder and srsagor is my username of system. So you can set ANDROID_HOME environment by variable path on 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
So after this we can also try to print that variable we can find value on ANDROID_HOME.
echo $ANDROID_HOME
Read Also : How to convert Object into Array in PHP?
Thanks for read. I hope it help you. For more you can follow us on facebook.