Skip to content

Instantly share code, notes, and snippets.

@d4vidi
Last active March 6, 2023 19:54
Show Gist options
  • Save d4vidi/706f69db58d0ea6d2b45f4106bab59db to your computer and use it in GitHub Desktop.
Save d4vidi/706f69db58d0ea6d2b45f4106bab59db to your computer and use it in GitHub Desktop.
Android CI Blog: avd setup.
# Install the emulator tool
./tools/bin/sdkmanager --install emulator
# Install an AOSP image that would later be used as the AVD's OS
./tools/bin/sdkmanager --install "system-images;android-29;default;x86_64"
# Accept all licenses...
./tools/bin/sdkmanager --licenses
# To do that automatically in a script, try this:
yes | ./tools/bin/sdkmanager --licenses
# Create an AVD with the image we've previously installed
./tools/bin/avdmanager --verbose create avd --force --name Pixel_4_API_29 --abi x86_64 --device "pixel" --package "system-images;android-29;default;x86_64"
# (optional) Review your brand new AVD:
./tools/bin/avdmanager list avd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment