Install_Android

Reading Time: <5 minutes

What’s up Guys! Welcome to automationcalling.com

This time I wanted to write up something about Mobile Automation from scratch, it could be Native, Hybrid or Web. Setting up Appium in Windows or MAC is a big challenge, we have to be very careful in terms of setting up environment. Writing too much information in one page is tedious to read. Hence, I’m going to split up all topics in different blog and combine with Appium automation framework.

Pre-requisites:

  1. This one is default Pre-requisites for Appium Installation and setup on Windows
  2. Make sure install JDK 8 and above version and add it in system environment variable and path
  3. confirm java version by supplying the command
  4. java_version

Installing Android Studio on Windows

  1. Go to the Website https://developer.android.com/studio/ and click on download button
  2. android_download
  3. agree
  4. After download, Right click on exe and run as Administrator
  5. Click on ‘Next’ button
  6. Make sure to select ‘Android Studio’ and ‘Android Virtual Device’
  7. Keep default installation location and click on ‘Next’ button
  8. Click on ‘Install’ button
  9. android_install
  10. This installation takes a while, Wait sometime until installation is done and click on ‘Finish’ button

Android Studio is successfully installed, now it’s time to install Android-SDK tools and packages.

Installing Android SDK Tools:

  1. Search-> Android Studio and Click for Launch
  2. Keep default settings (Don’t import anything)
  3. additional
  4. Keep default one “Standard”, click ‘Next’ button
  5. verifySettings
  6. Click on ‘Finish’ button, remember it takes a while to complete all SDK tools and packages.
  7. After few minutes, Go to Android Studio->Go to Tools->SDK Manager

Note:

If you don’t see SDK Manager under Tools, please wait few minutes until Android Studio takes some time to setup. In case SDK Manager still doesn’t show up please take a look at bottom right side where progress is being done indicates still processing. Suppose, the build gets failed, reinstall  SDK Manager again which will sort out the problem.

8. Once, SDK Manager does show up, Select the latest Android API and Android OS version

sdkmanager

Note: Selecting latest Android OS as well as API is fair enough to work with real devices irrespective of any OS real device you connect part of Appium Automation test. In case of emulator, the actual OS version must be checked when compare with Emulator version.

sdk_tools

It will take a while to complete installation. Be patience :-).

Setting up Android SDK in Environment Variable and PATH

  1. After Installation, by default ANDROID_HOME is set in environment variable
  2. android_env
  3. Make sure the following folders are added in PATH.
    1. %ANDROID_HOME%\platform-tools
    2. %ANDROID_HOME%\tools
    3. %ANDROID_HOME%\tools\bin
  4. Finally Android Studio installation is completed

To make sure, Android studio installation is success and environment variable is properly set, please supply the following commands.

  • sdkmanager –list (This will bring up and display all package installed in the machine)
  • uiautomatorviewer (This will bring up UI Automator Viewer window)

uiautomator

Congratulations! Android Studio and Setting up SDK Tools and package installed 

Please also take a look on Installing Appium Desktop and Setting up Selenium Grid

1 Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s