Home » Android » Android: How to launch emulator from command line?

Android: How to launch emulator from command line?

Posted by: admin May 14, 2020 Leave a comment

Questions:

I am using Windows 10 (64 bit) and Android Studio 2.3.

My Android emulator is located in folder:

d:\Programs\Android\avd.android\avd\Nexus_4_4.avd\

Suppose I’m in folder D:\temp.

How from folder D:\temp I can launch my emulator (from command line of pc)?

How to&Answers:

Open command prompt anywhere and use the following command

  • To get the list of available emulator

    emulator -list-avds

  • To open a emulator

    emulator -avd Nexus_5X_API_23

Answer:

I could only successfully run the command from the tools folder (Windows 10):

cd %ANDROID_HOME%/tools

To get the list of available virtual devices:

emulator -list-avds

To run it:

emulator -avd Nexus_5X_API_24

You can then put this at a .bat file:

cd %ANDROID_HOME%/tools
emulator -avd YOUR_VIRTUAL_DEVICE_ID

Answer:

Step for :

  1. Copy this cd C:\Users{User}\AppData\Local\Android\Sdk\emulator from your system
  2. Paste this on System Variable Path Setting.
  3. List available emulators: emulator -list-avds
  4. Start the emulator: emulator -avd {myEmulator}

Answer:

Run the following command in cmd:

  1. Cd C:\Users\Username\Appdata\local\Android\Sdk\Emulator

  2. .\emulator -avd Andro (Emulator Name)

You can make a shortcut by using a bat file.
Step 1 – Save the Path C:\Users\Username\AppData\Local\Android\Sdk\emulator in Environment variable.
Step 2 – Then make a .bat file and write the command
emaulator -avd (Emaulator Name)

Answer:

None of the above answers helped me on a windows 10 machine. This is what a window user needs to do:

  1. Go to the emulator folder: cd C:\Users\{User}\AppData\Local\Android\Sdk\emulator
  2. List available emulators: emulator -list-avds
  3. Start the emulator: emulator -avd {myEmulator}

Answer:

For WINDOWS only

1. first step to locate your AppData in your user folder if its hidden then in file-mangaer navigate to view-hidden items(check mark)

cd C:\Users\UserName\AppData\Local\android\sdk\emulator

2. second step is to see avd(android virtual devices) available
emulator -list-avds

3. Third steo is to launch avd
emulator -avd Pixel_2_API_29

Answer:

Emulator can also be opened from here

  1. Open the location C:\Users{User_Name}\AppData\Local\Android\Sdk\tools
  2. Now, open cmd from the current location.
  3. Type the command emulator.exe -avd {NameOfYourEmulator}

This worked for me in Windows 10.

To know the list of emulators. Use the command
emulator -list-avds

Answer:

For Windows Users:

  • Open CMD Then
    First Locate your emulator folder directory

    cd c:\Users\<Your name>\AppData\Local\Android\Sdk\tools
    emulator.exe -list-avds
    emulator.exe -avd emulator-name or emulator-Id

That’s It. you are done.

Answer:

For Mac users, open Terminal and run below commands –

  1. Navigate to the emulator folder directory(where SDK is installed). In my case –

    $ cd /Users/username/Library/Android/sdk/emulator

  2. Then check for available emulators –

    $ ./emulator -list-avds

  3. And finally –

    $ ./emulator -avd **nameofthedevice** -netdelay none -netspeed full

Answer:

Simple steps i followed :

  1. cd ~/Library/Android/sdk/tools/
  2. ./emulator -list-avds
  3. Pick one of your available emulator name and run ./emulator -avd Nexus_5X_API_24

Answer:

1. first step to locate your AppData in your user folder if its hidden then in file-mangaer navigate to view-hidden items(check mark)

cd C:\Users\UserName\AppData\Local\android\sdk\emulator
2. second step is to see avd(android virtual devices) available
emulator -list-avds
3. Third steo is to launch avd
emulator -avd Pixel_2_API_29