-
-
Notifications
You must be signed in to change notification settings - Fork 20
How to set the enviroment variable
This guide explains how to add the Android Platform Tools to the environment variable PATH
on a Windows system. This setup is essential for ATA-GUI, which can either automatically detect platform tools from the PATH
or it can download them automatically. Follow the steps below to configure your system for optimal use of ATA-GUI.
- Download Platform Tools: Ensure you have downloaded the platform tools zip file from the Android Developer website.
- ATA-GUI Installation: Make sure ATA-GUI is installed on your system.
First, extract the contents of the downloaded platform tools zip file to a directory on your computer. For example, you can extract it to C:\platform-tools
.
Next, add the directory containing the platform tools to your system's PATH
environment variable. Follow these steps:
-
Open System Properties:
- Press
Windows Key + R
to open the Run dialog box. - Type
sysdm.cpl
and pressEnter
to open the System Properties window.
- Press
-
Navigate to Environment Variables:
- In the System Properties window, click on the
Advanced
tab. - Click on the
Environment Variables
button at the bottom.
- In the System Properties window, click on the
-
Edit the PATH Variable:
- In the Environment Variables window, scroll down to find the
Path
variable under theSystem variables
section. - Select the
Path
variable and clickEdit
.
- In the Environment Variables window, scroll down to find the
-
Add New Entry:
- In the Edit Environment Variable window, click
New
and add the path to the directory where you extracted the platform tools, e.g.,C:\platform-tools
. - Click
OK
to save your changes.
- In the Edit Environment Variable window, click
-
Confirm Changes:
- Click
OK
in the Environment Variables window. - Click
OK
again in the System Properties window.
- Click
To ensure that the platform tools directory has been added correctly to your PATH
, follow these steps:
-
Open Command Prompt:
- Press
Windows Key + R
, typecmd
, and pressEnter
.
- Press
-
Check PATH:
- In the Command Prompt window, type
echo %PATH%
and pressEnter
. - Verify that the path to the platform tools directory (
C:\platform-tools
) is listed in the output.
- In the Command Prompt window, type
With the platform tools now added to your PATH
, ATA-GUI can automatically detect and use them. Follow these steps to use ATA-GUI:
-
Launch ATA-GUI:
- Open ATA-GUI.
-
Automatic Detection:
- ATA-GUI will scan the
PATH
and detect the platform tools.
- ATA-GUI will scan the
Alternatively, if you prefer not to add platform tools to the PATH
, you can place the platform tools in the same directory as ATA-GUI or specify the path within ATA-GUI's settings.
By following the steps in this guide, you have successfully added the Android Platform Tools to your system's PATH
environment variable. This allows ATA-GUI to detect and use these tools seamlessly. If you encounter any issues, ensure the path is correctly added and that the tools are properly extracted.
For more information or further assistance, refer to my email me@msartore.dev or by opening an issue.