Opens the android emulator and connects to the latest version device. (Available with React Native and/or IntelliJ)
$ ./open_android_emulator && react-native run-android
$ ./open_android_emulator
$ ./open_android_emulator Pixel_3_XL_API_28
- Go to Run/Debug Configurations.
- Add
React Native
.
- Find
Before Launch
. - Click
+
to add new configuration. - Add
Run External Tool
and Click+
again.
- In Tool Settings - Program - Browse, browse
open_android_emulator
.
- Click OK.
- Run.
Modify permission to give IntelliJ access to this file.
$ chmod a+x open_android_emulator