How to Set Up the ANDROID HOME Environment Variable on Windows 7: Difference between revisions

From wizarPOS
No edit summary
No edit summary
Line 1: Line 1:
=== Set in Win7 ===
== Steps to Configure ANDROID_HOME ==
# Click Properties of computer.
# '''Access System Properties:'''
# Click Advanced system settings.
#* Right-click on “Computer” and select “Properties.
# Click Environment Variables in System Properties>Advance tab.
# '''Navigate to Advanced System Settings:'''
# In System Variables table, click New to add system variable ANDROID_HOME, variable name is ANDROID_HOME, variable value is the path of Android SDK.
#* In the System window, click on “Advanced system settings.
# Append ';%ANDROID_HOME%;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools' to system variable Path.
# '''Modify Environment Variables:'''
#* In the System Properties dialog, under the “Advanced” tab, click on “Environment Variables.
# '''Add the ANDROID_HOME Variable:'''
#* In the System Variables section, click “New” to create a new variable.
#* Set the variable name as ''''ANDROID_HOME''''.
#* Set the variable value to the path of your Android SDK installation.
# '''Update the Path Variable:'''
#* In the System Variables section, locate and select the “Path” variable.
#* Click “Edit” and append the following to the variable value: '''';%ANDROID_HOME%;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools''''
== Important Notes ==
* Ensure that the path to the Android SDK is correct to avoid any issues with development tools not being recognized.
* Appending the SDK paths to the system variable 'Path' allows tools within the SDK to be accessed globally from the command line.

Revision as of 20:18, 7 January 2024

Steps to Configure ANDROID_HOME

  1. Access System Properties:
    • Right-click on “Computer” and select “Properties.”
  2. Navigate to Advanced System Settings:
    • In the System window, click on “Advanced system settings.”
  3. Modify Environment Variables:
    • In the System Properties dialog, under the “Advanced” tab, click on “Environment Variables.”
  4. Add the ANDROID_HOME Variable:
    • In the System Variables section, click “New” to create a new variable.
    • Set the variable name as 'ANDROID_HOME'.
    • Set the variable value to the path of your Android SDK installation.
  5. Update the Path Variable:
    • In the System Variables section, locate and select the “Path” variable.
    • Click “Edit” and append the following to the variable value: ';%ANDROID_HOME%;%ANDROID_HOME%\platform-tools;%ANDROID_HOME%\tools'

Important Notes

  • Ensure that the path to the Android SDK is correct to avoid any issues with development tools not being recognized.
  • Appending the SDK paths to the system variable 'Path' allows tools within the SDK to be accessed globally from the command line.