ItSolutionStuff.com

How to Set ANDROID_HOME Environment Variable in Ubuntu?

By Hardik Savani • May 1, 2024
Installation Ubuntu

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

Tags: Ubuntu
Hardik Savani

Hardik Savani

I'm a full-stack developer, entrepreneur, and founder of ItSolutionStuff.com. Passionate about PHP, Laravel, JavaScript, and helping developers grow.

📺 Subscribe on YouTube

We Are Recommending You

How to Install PHP Curl Extension in Ubuntu?

Read Now →

How to Increase memory_limit in PHP Ubuntu?

Read Now →

How to Increase post_max_size in PHP Ubuntu?

Read Now →

How to Check Current PHP Version in Ubuntu?

Read Now →

How to Upgrade PHP Version from 8.0 to 8.1 in Ubuntu?

Read Now →

How to Restrict/Block IP Address in Apache Ubuntu?

Read Now →

How to Install Laravel in Ubuntu Server?

Read Now →

How to Install Phpmyadmin in Ubuntu Server?

Read Now →

How to Install MySQL in Ubuntu Server?

Read Now →

How to Connect to a Remote Server using SSH on Ubuntu?

Read Now →

How to Export Mysql Database using Command Line in Ubuntu?

Read Now →

How to Import Database in Mysql using Command Line in Ubuntu?

Read Now →

How to Enable Apache mod_rewrite Module in Ubuntu?

Read Now →

How to Enable Rewrite Mode for Apache in Ubuntu?

Read Now →