Last active
March 3, 2023 19:58
-
-
Save gesielrosa/2ddde63e937c7b72d3f486727d6a4e44 to your computer and use it in GitHub Desktop.
[MACOS] Open Android Emulator
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
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
chmod +x ./run-emulator.command