Therefore, I created an alias in my ~/.bash_profile file that lets me launch my preferred emulator using a single command. I wanted to simplify these two steps into one, because I do the vast majority of my development on a single AVD.
ANDROID EMULATOR MAC SHORTCUTS FULL
The full workflow is: 1) use emulator -list-avds to see a list of your current AVDs.
ANDROID EMULATOR MAC SHORTCUTS ANDROID
But if this becomes too annoying you can always switch to running the emulator command without the ampersand, and just give the process its own tab or window in your terminal.Īt this point you’re now able to successfully launch Android AVDs from your command line.
![android emulator mac shortcuts android emulator mac shortcuts](https://i2.wp.com/www.alphr.com/wp-content/uploads/2021/03/5-67.png)
You can safely use Ctrl+C to regain control without killing the AVD.
![android emulator mac shortcuts android emulator mac shortcuts](https://miro.medium.com/max/1838/0*947SjYjMow5rN7LZ.png)
So I spent a little time setting up commands that let me launch these tools from my terminal.
![android emulator mac shortcuts android emulator mac shortcuts](https://miro.medium.com/max/1838/1*RD96yA0A1dzwjAlQQWo0yQ.png)
I use the iOS Simulator and AVDs (Android Virtual Devices) heavily, and was getting frustrated with the need to manually launch the two from Xcode and Android Studio, respectively.