Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Open the URL: https://developer.android.com/studio/index.html
  2. Scroll down to bottom.
  3. In the Get just the command line tools section, download the latest version of SDK tools package for Windows.
  4. Once downloaded, unzip the file and go to tools > lib.
  5. Copy AVD Manager.exe and SDK Manager.exe and place it where you have unzipped the original set up file (if not present).
  6. Launch SDK Manager.
  7. In the Tools section, select Android SDK Tools and Android SDK Platform-tools.
  8. Select required Android APIs (if you want to create emulators).
    Note: Appium supports API level 17 and above.
  9. 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.
  10. Click the Install xx packages... button.

    Expand
    titleView Image


Setting Environment Variables

After you download command line tools and platform-tools, you must set environment variables.
To set Environment Variables:

...

  1. Download the Intel® HAXM and unzip the downloaded file.
  2. Double-click the intelhaxm-android file.
    This opens Intel® Hardware Accelerated Execution Manager Setup wizard.
  3. 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.
  4. Change the reserved memory, if required and click Next.
  5. Click Install.
  6. Post successful installation, open the Command Prompt window and run the command; sc query intelhaxm.
    If State is shown as running, Intel® HAXM is running properly.

    Expand
    titleView Image


    Note
    • When creating emulators, ensure 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 Devises (AVDs) / Emulators

An Android Virtual Device (AVD) manager allows you defining 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.

...