Set Android_Home Environment Variable in Windows 10

After you are done with installation of Android SDK on Windows 10, you must set the ANDROID_HOME environment variable to point to the Android SDK installation directory.

To set up the Android Environment variable on Windows, you first required to have Android installation path with you.

By default it should be similar to this C:\Users\UserName\AppData\Local\Android\Sdk. If you are not able to find AppData folder you can follow this article.

Steps to set Android_Home Environment Variable path

Step 1: Open Control Panel -> System

android home path windows 10

Step 2: Click on Advance System Settings

android_home environment variable windows 10

Step 3: Click Environment Variables on System Properties Dialogue

android_home windows 10

Step 4: In User variables or System Variable section, click on New button. [Note: System variables are shared for all users, but user variables are only for your account/profile.]

how to set android sdk path in windows 10

Step 5:  In New User Variable dialogue, Enter Variable name as ANDROID_HOME and Variable value as C:\Users\goswa\AppData\Local\Android\Sdk [Use your path here] and Click on OK button

android home variable windows 10

Step 6: Select on Path variable in User or System Variable section and  click on Edit or you can double click on Path variable as well. 

android sdk environment variables windows 10

Step 7: From Edit environment variable dialogue box, Click on New and enter path for platform-tools and tools.

android studio environment variables windows 10

Step 8: Go to command prompt and type adb. If everything successful you will see below output.

how to set environment variable for android studio in windows 10

Note: You may need to open a new command prompt if you are getting command not found after setting environment variables.

Thu, 09/24/2020 - 20:13

Authored by

Tarun Goswami, works as a Technical Lead at the well-known IT services company. With Over 11+ years of experience in Quality Assurance, he writes engaging and informative blogs in his spare time.

Video Tutorial: How to set Android SDK path in Windows 10

Tags

Comments