Skip to content

Instantly share code, notes, and snippets.

@viktorbenei
Created March 7, 2016 21:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viktorbenei/af51749021ff0525cbbb to your computer and use it in GitHub Desktop.
Save viktorbenei/af51749021ff0525cbbb to your computer and use it in GitHub Desktop.
Android Emulator with Google APIs

Creating an AVD image with Google APIs is a bit more complex than just having the packages available (which we do).

We just tested with a new project and this should work - delete the Create Android Emulator step and replace it with a Script step:

#!/bin/bash
set -e
set -x

echo y | android update sdk --no-ui --all --filter addon-google_apis-google-22

echo y | android update sdk --no-ui --all --filter sys-img-armeabi-v7a-addon-google_apis-google-22

echo no | android create avd --force --name test --target "Google Inc.:Google APIs:22" --tag google_apis --abi armeabi-v7a
@viktorbenei
Copy link
Author

The name of the configuration this script creates is test (the --name parameter). Use can use this name directly in other Steps/scripts, or just change the --name parameter to anything you like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment