Created
December 22, 2017 18:00
-
-
Save BenFausch/407f1abbe9c923642e76d2d0e56ce40b to your computer and use it in GitHub Desktop.
Run Android emu from command line
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//this lists available devices: | |
alias listAndroid='cd ~/Library/Android/Sdk/tools/bin && ./avdmanager list avd' | |
response looks like this: | |
Available Android Virtual Devices: | |
Name: Nexus_5X_API_24 | |
Device: Nexus 5X (Google) | |
Path: /Users/benfausch/.android/avd/Nexus_5X_API_24.avd | |
Target: Google Play (Google Inc.) | |
Based on: Android 7.0 (Nougat) Tag/ABI: google_apis_playstore/x86 | |
Skin: nexus_5x | |
Sdcard: 100M | |
//then, using the Name value from the response, I use this to start the emulator: | |
alias startAndroid='cd ~/Library/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_24' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment