How To Set Path Environmental Variable for SDK in Windows?

In order to run Appium automation tests, it is required to set path environmental variables to describe the path of android SDK folders. In addition, you also need to set ANDROID_HOME.

Set ANDROID_HOME and Path Variables

Step 1. Right-click on ‘My Computer’ and select Properties. Go to Advanced system settings and select ‘Environmental Variables’ option.

Step 2. Under the User Variable table, click New to open New User Variable dialog.

Step 3. Put ANDROID_HOME as Variable name and provide the path of the SDK folder next to Variable value.

Step 4. Click OK to close the dialog box.

Step 5. Go to the folder where SDK has been installed.

Step 6. Inside the SDK folder look for ‘tools’ and ‘platform-tools’ folder.

Step 7. Copy the path for both tools and platform-tools.

Step 8. Open ‘Environmental Variables’ dialog box.

Step 9. Go to System Variables table and locate the Path variable.

Step 10. Edit the path variable from ‘Edit system Variables’ dialog box.

Step 11. Add the ‘tools’ and platform-tools’ folder’s full path.

tep 12. Close the entire opened dialog box.

Step 13. This configures the Android. However, to check open the command prompt.

Step 14. Type the command ‘android’. This will open the Android SDK Manager dialog box. This ensures that the android is configured properly.


Leave a Comment

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