Delivered by FeedBurner

Set ANDROID_HOME and Path Environment Variables For SDK In Windows

ANDROID_HOME : You must need to set ANDROID_HOME in order to run appium test. In previous post, We learnt about how to download and install android SDK software and its different packages in windows. In order to use android environment to run appium software automation tests, You must need to set ANDROID_HOME and path environment variables for describing path of android SDK folders to your operating system. Bellow given steps will explain you how to set ANDROID_HOME and Path Environment Variables in windows for android SDK software.

PREREQUISITES : FIRST 3 STEPS of appium automation software tutorial should be completed.


After installation of different packages, You need to set ANDROID_HOME and path environment variables. Follow the steps given bellow to set it.
  • Open "Environment Variables" dialog from win start menu -> Right click on My Computer -> Select properties -> Advanced system settings -> Environment Variables button from Advanced tab. You can view detailed steps to open Environment Variables dialog in THIS POST.
  • Click on New button under User Variable table. It will open New User Variable dialog.
  • Set Variable Name = ANDROID_HOME and Variable value = E:\SDK (Path of SDK folder). Path can be different for you as per your SDK folder location as described in previous post.
  • Click on OK button to close New User Variable dialog as shown in bellow image.

Set Path Variables
  • Open SDK Folder from E: drive.
  • You will find "tools" and "platform-tools" folders inside SDK folder.
  • Copy path of both these folders. e.g. E:\SDK\tools and E:\SDK\platform-tools\
  • Open "Environment Variables" dialog as described above.
  • Locate Path variable line under System Variables table.
  • Edit Path variable by clicking on Edit button. It will open Edit  System Variables dialog.
  • Append "tools" and "platform-tools" folder's full path at the end of line as shown in bellow image. e.g. ;E:\SDK\tools;E:\SDK\platform-tools\;

  • Now close all dialog by clicking on OK buttons of all opened dialog as shown in above image.
Verify Android Is Installed And Configured Properly
To check if android is configured properly or not,
  • Open command prompt.
  • Type command android as shown in bellow image.
  • It will open Android SDK Manager dialog as shown in bellow image.
Verify Android Is Installed

That means android is configured properly in your system.

Now ANDROID_HOME and Path Environment Variables are set for android SDK in windows environment. So android environment is configured and ready to use with appium to execute software automation tests. Next post will describe you how to integrate SDK with eclipse using Eclipse ADT Plugin to use android SDK with eclipse.


  1. Thanks for the post its really help full for initial android user

  2. Thank you for your help but i have an issue that is i do not find the sdk path in my computer. I want this setup for an ionic app create android platform and generate apk file. I also installed in my computer android studio.

    Please help me to find the sdk path. I'm getting the error ANDROID_HOME veriable not setup, setup it manually.

    1. u have to add JAVA_HOME variable also along with ANDROID_HOME to have proper functionality.

    2. u have to add JAVA_HOME variable also along with ANDROID_HOME to have proper functionality.

  3. I'm getting ANDROID_HOME variable not setup setup it manually to generate a apk from a ionic framework project. i did not find the sdk path in my computer but i also installed android studio in my computer. Please help me.

  4. 'android' is not recognised as internal or external command,operable program or batch file- message is displayed in command prompt. I had set the path correctly, But don't know what is the problem can you please help me with it??