Skip to content

Instantly share code, notes, and snippets.

@Tanapruk
Last active March 15, 2017 14:12
Show Gist options
  • Save Tanapruk/b05e97d68a5969b4402650094145e913 to your computer and use it in GitHub Desktop.
Save Tanapruk/b05e97d68a5969b4402650094145e913 to your computer and use it in GitHub Desktop.
Android Emulator related CLI

Create emulator from command-line

avdmanager create avd 
--package "system-images;android-25;google_apis;x86" 
--name "Test" 
--tag "google_apis" 
--device 17

Comments

  • system-images;android-25;goo0gle_apis;x86 are configuration for emulator. E.g., android-25 is Nougat. google-apis is google bundled preinstalled. x86 is cpu architecture.
  • Test is the emulator name
  • google_apis is their requirement. Documents tell me nothing.
  • 17 is the id for a skin of Pixel Phone

Launch emulator from command-line

emulator  @Test

Comments

  • Test is the name of a device.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment