Skip to content

Instantly share code, notes, and snippets.

@spelcaster
Last active March 14, 2018 19:22
Show Gist options
  • Save spelcaster/cf36d51e9ae2f373f7e674d543a5a699 to your computer and use it in GitHub Desktop.
Save spelcaster/cf36d51e9ae2f373f7e674d543a5a699 to your computer and use it in GitHub Desktop.
Create and launch AVD from command line
# https://stackoverflow.com/questions/43275238/how-to-set-system-images-path-when-creating-an-android-avd/43522262
# download img
sdkmanager 'system-images;android-23;google_apis;x86_64'
# accept the sdk license
sdkmanager --licenses
# create AVD
avdmanager create avd -n {avd_name} -k "system-images;android-23;google_apis;x86_64" -b x86_64 -c 100M -d 7 -f
# install emulator
sdkmanager emulator
# launch the AVD
emulator -avd {avd_name}
@spelcaster
Copy link
Author

I was able to run the emulator after:

  • run emulator from $ANDROID_SDK_HOME/emulator
  • fix the libstdc++.so

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