Install Android SDK

Android SDK tools can be installed from android developer site. If you are a developer, then it makes more sense to download Android Studio (that comes bundled with sdk). However if you are a devops/build/release/ci engineer, then you would like to do things headless, hence it makes more sense to download standalone tools.

In this book we focus more on doing things headless, because IDE's in the background call the commands anyways (mostly)

Standalone sdk

Download the standalone sdk from Download Android SDK
This is the latest sdk as of date 12/9/2015

The extracted contents to the folder "/Users/pmacharl/Library/Android/sdk" look as below

After this, add the below shell variables in ~/.profile path

  • ANDROID_HOME=/Users/pmacharl/Library/Android/sdk
  • PATH=$PATH:$ANDROID_HOME/platform-tools
  • PATH=$PATH:$ANDROID_HOME/tools

Quick Checks

Since we will use adb, uiautomatorviewer executables in subsequent sections, check that they are available in PATH as below

Press Ctrl+C in shell or close uiautomatorviewer directly.

This ensures that we have Android SDK set up and ready for building apps.

results matching ""

    No results matching ""