Skip to content

Instantly share code, notes, and snippets.

@gesielrosa
Last active March 3, 2023 19:58
Show Gist options
  • Save gesielrosa/2ddde63e937c7b72d3f486727d6a4e44 to your computer and use it in GitHub Desktop.
Save gesielrosa/2ddde63e937c7b72d3f486727d6a4e44 to your computer and use it in GitHub Desktop.
[MACOS] Open Android Emulator
if [ -z "$ANDROID_SDK_ROOT" ]; then
echo "ANDROID_SDK_ROOT is not set"
exit 1
fi
cd $ANDROID_SDK_ROOT/emulator
echo ""
echo "[Available devices]"
./emulator -list-avds
echo ""
read -p "Enter the device id: " name
./emulator -avd $name
@gesielrosa
Copy link
Author

chmod +x ./run-emulator.command

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