Android: How to start the emulator from the command line?

Windows 10 (64 bit). Android Studio 2.3.

My Android emulator is located in the folder:

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

Suppose I am in the folder D: \ temp .

How from the folder D: \ temp Can I start my emulator (from the computer command line)?

+8
source share
11 answers

Open a command prompt anywhere and use the following command

  • To get a list of available emulators

    emulator -list-avds

  • To open the emulator

    emulator -avd Nexus_5X_API_23

+21
source

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

cd %ANDROID_HOME%/tools

:

emulator -list-avds

:

emulator -avd Nexus_5X_API_24

.bat:

cd %ANDROID_HOME%/tools
emulator -avd YOUR_VIRTUAL_DEVICE_ID
+18

cmd:

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

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

bat. 1. C:\Users\ \AppData\Local\Android\Sdk\emulator . 2 - .bat -avd ( )

+3

Windows 10. :

  1. : cd C:\Users\{User}\AppData\Local\Android\Sdk\emulator
  2. : emulator -list-avds
  3. : emulator -avd {myEmulator}
+2

  1. C:\Users {_}\AppData\Local\Android\Sdk\tools
  2. cmd .
  3. emulator.exe -avd {NameOfYourEmulator}

Windows 10.

. -avd s

+1

:

  1. - C:\Users {User}\AppData\Local\Android\Sdk\emulator
  2. .
  3. : -avd s
  4. : -avd {myEmulator}
+1

Windows:

  • CMD

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

. .

+1

WINDOWS

1. , AppData , , -mangaer ()
cd C:\Users\UserName\AppData\Local\android\sdk\emulator

2. - avd ( Android)
emulator -list-avds

3. AVD
emulator -avd Pixel_2_API_29

+1

Mac -

  1. ( SDK). -

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

  2. -

    $ ./emulator -list-avds

  3. -

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

0

:

  1. CD ~/Library/Android/sdk/tools/
  2. ./emulator -list-avds
  3. ./emulator -avd Nexus_5X_API_24
0

1 . the first step is to find your AppData in the user folder, if it is hidden, then in the mangaer file go to view hidden items (checkmark)
cd C:\Users\UserName\AppData\Local\android\sdk\emulator
2 . The second step is to see available avd (Android virtual devices)
emulator -list-avds
3 . Third stereo - launch avd
emulator -avd Pixel_2_API_29

-1
source

Source: https://habr.com/ru/post/1679143/


All Articles