Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save s1amjam/7b51beb2fd529fbbbc5d2d5ebb76f7f6 to your computer and use it in GitHub Desktop.

Select an option

Save s1amjam/7b51beb2fd529fbbbc5d2d5ebb76f7f6 to your computer and use it in GitHub Desktop.
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

How to Install and Create Emulators using AVDMANAGER and SDKMANAGER

Installing system images

We pre-install these system images on the base build agent to provide our project teams the ability to run emulators on a range of API levels, from API 19 to API 28. X86 is the fastest architecture for emulators, though x86_64 would probably be better to test against because most phones are 64 bit now.

KITKAT

(4.4) sdkmanager --install "system-images;android-19;google_apis;x86"

LOLLIPOP

(5.0) sdkmanager --install "system-images;android-21;google_apis;x86" (5.1) sdkmanager --install "system-images;android-22;google_apis;x86"

MARSHMELLOW

(6.0) sdkmanager --install "system-images;android-23;google_apis;x86"

NOUGAT

(7.0) sdkmanager --install "system-images;android-24;google_apis;x86" (7.1) sdkmanager --install "system-images;android-24;google_apis;x86"

OREO

(8.0) sdkmanager --install "system-images;android-26;google_apis;x86" (8.1) sdkmanager --install "system-images;android-27;google_apis;x86"

PIE

(9.0) sdkmanager --install "system-images;android-28;google_apis;x86"

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