Skip to content

Instantly share code, notes, and snippets.

@tugceaktepe
Created June 18, 2023 14:03
Show Gist options
  • Save tugceaktepe/e2d9fc754bf12fee8543c5536de0c683 to your computer and use it in GitHub Desktop.
Save tugceaktepe/e2d9fc754bf12fee8543c5536de0c683 to your computer and use it in GitHub Desktop.
Emulator scripts
apt-get update -y
apt-get --quiet install --yes libx11-dev libgl1 libpulse0 libnss3 libxcomposite-dev libxcursor1 libasound2
apt-get update
apt-get install -y libgl1-mesa-glx
sdkmanager --update > update.log
sdkmanager "platform-tools" "emulator" "system-images;android-${EMULATOR_VERSION};default;x86_64" > installEmulator.log
wget --quiet --output-document=android-wait-for-emulator https://raw.githubusercontent.com/travis-ci/travis-cookbooks/0f497eb71291b52a703143c5cd63a217c8766dc9/community-cookbooks/android-sdk/files/default/android-wait-for-emulator
chmod +x android-wait-for-emulator
chmod +x gradlew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment