Skip to content

Instantly share code, notes, and snippets.

@pferreir
Last active May 8, 2019 11:55
Show Gist options
  • Select an option

  • Save pferreir/c38cc051b3363036d8c3eb39d5c1924c to your computer and use it in GitHub Desktop.

Select an option

Save pferreir/c38cc051b3363036d8c3eb39d5c1924c to your computer and use it in GitHub Desktop.
# just accept all licenses
sdkmanager --licenses
# install emulator
sdkmanager emulator
# install HW acceleration for emulator
sdkmanager 'extras;intel;Hardware_Accelerated_Execution_Manager'
sudo /path/to/.../android-sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh
# install emulator image
sdkmanager 'system-images;android-28;google_apis_playstore;x86_64'
# create AVD
avdmanager create avd -d 6 -n Test -k 'system-images;android-28;google_apis_playstore;x86_64'
# Enable hardware keyboard
echo 'hw.keyboard=yes' >> $HOME/.android/avd/Test.avd/config.ini
# if you're running on a real device, you might need this:
adb reverse tcp:8081 tcp:8081
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment