...
- From desktop, right-click the Computer icon.
- Select Properties from the context menu.
- In the left pane, click Advanced System Settings.
- On the System Properties window, click Environment Variables.
- In the User Variables section, create new variable as ANDROID_HOME and enter the path of Android SDK.
To find the Android SDK location, launch Android Studio > File > Settings. Copy the path specified in Android SDK Location.
For example: D:\Android - Click OK.
Note: The Android_Home path should not contain any white spaces. - If Java_Home is not already set, create a new variable as JAVA_HOME, type the path to JRE/JDK and then click OK.
- In the System Variables section, select the PATH variable and type , and enter the following paths:
- Type the path to 'Platform-tools' from the Android SDK location (which you added in the step 5 above).
For example: D:\Android\platform-tools.
- Type the path to 'tools' from the Android SDK location (which you added in the step 5 above).
For example: D:\Android\tools.
- Type the path to 'Platform-tools' from the Android SDK location (which you added in the step 5 above).
- Click OK.