Android Studio
Introduction
Android Studio is the easiest way to install and manage the Android SDK and Platform Tools, which are essential for automated testing with Appium. This section focuses on installing Android Studio and configuring the environment for using the Android SDK.
Download
To download Android Studio, follow these steps:
- Go to the Android Studio download page.
- Click on the Download Android Studio button.
- Verify the correct platform: Windows or Mac installer.
- Accept the terms and conditions to start the download.
Android Studio Installation
Windows
- Run the downloaded installer file.
- Follow the installation wizard instructions, keeping the default configurations.
macOS
- Open the downloaded
.dmgfile. - Drag and drop the Android Studio icon into the Applications folder.
SDK and Tools installation
After installing Android Studio, you need to install SDK Tools and Client Tools.
Open Android Studio and click on More actions -> SDK Manager.

Click on SDK Platform. Choose one recent SDK to install it and click on Apply.

Click on SDK Tools.
Make sure all these components are checked:
- Android SDK Build-Tools
- Android SDK Command-line Tools (latest)
- Android SDK Platform-Tools (latest)
- Android Emulator

Click on Apply.
Create the ANDROID_HOME variable
The ANDROID_HOME is an environment variable which many tools read to determine the Android SDK installation directory.
To check if ANDROID_HOME is defined, open the terminal and type:
$env:ANDROID_HOMEecho $ANDROID_HOMEThe correct output for this command should be a text like this:
C:\Users\<your-username>\AppData\Local\Android\Sdk/Users/<your-username>/Library/Android/sdkVerify that the above output value matches the existing Android SDK installation folder on your system.
If the value is missing or invalid, update/create an environment variable named ANDROID_HOME. To create/update an environment variable, follow the instructions here.
Add to PATH
Add the following directories to the system PATH:
Platform Tools:
textC:\Users\<your-username>\AppData\Local\Android\Sdk\platform-toolstext/Users/<your-username>/Library/Android/sdk/platform-toolsTo add a directory to the system path, follow the instructions here.
Cmdline Tools (bin):
textC:\Users\<your-username>\AppData\Local\Android\Sdk\cmdline-tools\latest\bintext/Users/<your-username>/Library/Android/sdk/cmdline-tools/latest/binTo add a directory to the system path, follow the instructions here.
Verify Configuration
- Open a terminal.
- Run the command:shellThis should return the version of ADB (Android Debug Bridge).
adb --version - Run the command:shellThis should return the version of Android SDK Manager.
sdkmanager --version
More Information
For more details and advanced configurations, refer to the official Android Studio documentation.