To install Android on your machine, follow the following instructions:
1. Go to the following link https://developer.android.com/studio/#downloads
2. Scroll down to the 'Command Line Tools' section
3. Depending on whether you are using a Mac, a Linux or a Windows machine, click on the appropriate link and download the zip file.
4. Place this zip file inside the folder: ~/robustest/tools/android/
5. Unzip the file
6. Rename the unzipped folder to cmdline-tools
7. Within the cmdline-tools folder, rename the folder ‘tools’ to ‘latest’
- 8. Open the command line
- In a Mac or a Linux machine, open Terminal and go to the folder ~/robustest/tools/android/cmdline-tools/latest/bin
- In a Windows machine, start an :ref:`elevated-powershell`
- 9. Install Android as follows:
- In Windows, do the following:
- Run the following command
.\sdkmanager --update
- Run the command
.\sdkmanager --list
- From the output of the command above, select the latest version of build-tools. It will look something like this: "build-tools;30.0.2"
- Copy paste this string and run the command as seen below
.\sdkmanager "build-tools;30.0.2"
- Run the command
.\sdkmanager "platform-tools"
- Once installed, Android SDK is successfully installed
- In Mac or Linux machines, run the following commands
- Run the following command
./sdkmanager --update
- Run the command
./sdkmanager --list
- From the output of the command above, select the latest version of build-tools. It will look something like "build-tools;27.0.3"
- Copy paste this string and run the command as seen below
./sdkmanager "build-tools;27.0.3"
- Run the command
./sdkmanager "platform-tools"
- Once installed, android sdk is successfully installed
- In Windows, do the following:
10. For Windows machines, create the environment variables ANDROID_HOME and ANDROID_SDK_ROOT
- In the Windows Search bar, search using the string ‘env’
- Click on the option ‘Edit the system environment variables’
- In the window that opens up, click on the button ‘Environment Variables’
- Under the section ‘User Variables’, click on the button ‘New’
- Enter the value ANDROID_HOME in the ‘Variable name’ field
- Enter the path to the robustest\tools\android folder in the ‘Variable value’ field. This is usually of the form C:\\Users\<username>\robustest\tools\android
- Under the section ‘User Variables’, click on the button ‘New’
- Enter ANDROID_SDK_ROOT in the ‘Variable name’ field
- Enter the path to the robustesttoolsandroid folder in the ‘Variable value’ field. This is usually of the form C:\\Users\<username>\robustest\tools\android
- Under the section ‘User Variables’, click and select the environment variable named PATH
- Click on the ‘Edit’ button
- Click on the button ‘New’
- Enter the value %ANDROID_HOME%
- Click on the button ‘New’
- Enter the value %ANDROID_HOME%platform-tools
- Click on OK
- Click on OK
- Close the PowerShell session and start a new :ref:`elevated-powershell`