Running Android Emulator from command line

It will be very easy to run Android Emulator if your Android SKD PATH is already set.

You can set Android PATH in MAC from my previous post - How to set Android SDK PATH in Mac

Once your PATH setup is done, use below commands:

To get list of virtual devices use -list-avds command. This command will return names of installed Android Virtual devices
emulator -list-avds 

To run emulator use command
emulator -avd avdName


If you Android SDK PATH is not set, you can run it from the installed directory path:

Go To:
/Users/userName/Library/Android/sdk/tools
To get list of emulators

./emulator -list-avds 
To run
./emulator -avd avdName

Comments

  1. hello!! Very interesting discussion glad that I came across such informative post. Keep up the good work friend. Glad to be part of your net community. android-emulators.com

    ReplyDelete

Post a Comment

Popular posts from this blog

PANIC: Broken AVD system path Check your ANDROID_SDK_ROOT

PANIC: Missing emulator engine program for 'x86' CPU.

How to set Android SDK PATH in Mac