Installing Android SDK
The Android SDK provides ADB (Android Debug Bridge), which RobusTest uses to communicate with Android devices.
Steps
1. Go to https://developer.android.com/studio/#downloads and scroll down to the Command Line Tools section.
2. Download the zip file for your operating system (Mac, Linux, or Windows).
3. Place the zip file in:
~/robustest/tools/android/
4. Unzip the file, then rename the extracted folder to cmdline-tools.
5. Inside cmdline-tools, rename the folder named tools to latest.
6. Open a terminal:
- Mac / Linux: Open Terminal and navigate to
~/robustest/tools/android/cmdline-tools/latest/bin - Windows: Open an elevated PowerShell session
7. Install the Android SDK:
Mac / Linux:
./sdkmanager --update
./sdkmanager --list
# From the list, identify the latest build-tools version (e.g. "build-tools;27.0.3") and run:
./sdkmanager "build-tools;27.0.3"
./sdkmanager "platform-tools"
Windows:
.\sdkmanager --update
.\sdkmanager --list
# From the list, identify the latest build-tools version (e.g. "build-tools;30.0.2") and run:
.\sdkmanager "build-tools;30.0.2"
.\sdkmanager "platform-tools"
8. (Windows only) Set the ANDROID_HOME and ANDROID_SDK_ROOT environment variables:
- In the Windows search bar, search for env and click Edit the system environment variables.
- Click Environment Variables.
- Under User Variables, click New and add:
- Variable name:
ANDROID_HOME - Variable value:
C:\Users\<username>\robustest\tools\android
- Variable name:
- Click New again and add:
- Variable name:
ANDROID_SDK_ROOT - Variable value:
C:\Users\<username>\robustest\tools\android
- Variable name:
- Select the PATH variable, click Edit, then New, and add:
%ANDROID_HOME%%ANDROID_HOME%\platform-tools
- Click OK on all windows.
- Close and reopen your elevated PowerShell session.
