Table of Contents |
---|
...
- Download Android Studio.
- Once downloaded, double-click android-studio-bundle-162.3934792-windows.exe.
This will start installation of Android Studio Installation. - Follow the on screen instructions and complete the studio installation.
In order to create get started with application testing using virtual devices (emulators), users need to create a project in Android Studio. - Once completed with the installation, launch Android Studio.
- Create a dummy project.
- For more information about creating and managing virtual devices (emulators), click here.
- In the Get just the command line tools section, download the latest version of SDK tools package for Windows.
- Once downloaded, unzip the file and go to tools > lib.
- Copy AVD Manager.exe and SDK Manager.exe and place it where you have unzipped the original set up file (if not present).
- Launch SDK Manager.
- In the Tools section, select Android SDK Tools and Android SDK Platform-tools.
- Select required Android APIs (if you want to create emulators).
Note: Appium supports API level 17 and above. - In the Extras section, select Intel x86 Emulator Accelerator (HAXM Installer) and Google USB Driver.
Note: If it is not compatible with Windows, install it separately. Click the Install xx packages... button.
Expand From the Tools menu, click Android and then select SDK Manager.title View Image Select required packages to install and click Apply.
Expand title View Image System displays the list of components selected to be installed.
Click OK.
Once all the required components are installed, click Finish.
Now you can start creating virtual devices. For more information about creating and managing virtual devices (emulators), click here.
Installing Intel® Hardware Accelerated Execution Manager (Intel® HAXM)
It is recommended to install Intel® HAXM for smooth functioning of Android Virtual Devices (emulators). When installing Android Studio, you do not need to install it separately, however, when installing command line tools, you must install it separatelyit is installed automatically. However, if it is not installed when installing Android Studio, follow the steps mentioned below to install it.
To install Intel® HAXM:
- Download the Intel® HAXM and unzip .
- Unzip the downloaded file.
- Double-click the intelhaxm-android file.
This opens Intel® Hardware Accelerated Execution Manager Setup wizard. - Click Next.
Here you can define how much system memory (RAM) you want to reserve for Intel® HAXM. By default, 2.00 GB is reserved. - Change the reserved memory, if required and click Next.
- Click Install.
After successful installation, open the Command Prompt window and run the command; sc query intelhaxm.
If State is shown as running Running, Intel® HAXM is running properly.Expand title View Image
Open the AVD Manager applicationNote - When creating emulators, ensure that you have selected CPU/ABI as Intel x86 for superior performance of emulator through Intel® HAXM.
- If you are facing any issues when installing or using Intel® HAXM, click here for troubleshooting.
Creating Android Virtual Devices (AVDs)/Emulators
An Android Virtual Device (AVD) manager allows you to define characteristics of Android devices you want to simulate in the Android Emulator. The AVD Manager helps you to create and manage Android Virtual Devices. The AVD Manager comes bundled with some predefined hardware profiles, such as Nexus phone devices and you can define and import hardware profiles as per the requirements. The AVD Manager allows you to manage all your AVDs in one place.
To run the AVD Manager:
- .
- Using this screen, you can;
- View details of existing Android Virtual Devices,
- Create new Android Virtual Devices,
- Edit/Repair existing Android Virtual Devices, and
- Remove/Delete obsolete Android Virtual Devices.
...
...
Setting Environment Variables
...