Skip to content

Instantly share code, notes, and snippets.

@kkrishnan90
Created December 16, 2018 16:37
Show Gist options
  • Save kkrishnan90/1f6f43b71e8fb0d228725b38f7c9bce0 to your computer and use it in GitHub Desktop.
Save kkrishnan90/1f6f43b71e8fb0d228725b38f7c9bce0 to your computer and use it in GitHub Desktop.
Run Android Emualtor from Terminal on Ubuntu using this bash script
#!/bin/bash
`#You can close the Terminal Window after running the emulator. Nohup will keep the service running` \
echo "Setting env variables..."
export ANDROID_SDK={YOUR_ANDROID_SDK_PATH_HERE}
export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH
echo "Starting Emulator..."
nohup emulator @{YOUR_EMULATOR_NAME_HERE} & `#get list of avd and get the exact name and replace it here with YOUR_EMULATOR_NAME_HERE` \
disown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment