Last active
May 8, 2019 11:55
-
-
Save pferreir/c38cc051b3363036d8c3eb39d5c1924c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| # 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