Run AVD Emulator without Android Studio

is there a way to run the emulator without starting the Android Studio first. Perhaps from the command line. I know that this feature was available in older versions and has vanished since then. But perhaps someone found out how to do it anyways?


The way to run emulator from console (I assume that you installed it before, using Android Studio) is:

run cd ~/Android/Sdk/tools/bin && ./avdmanager list avd

You will get the list od your virtual installed devices. In my case it was:

Available Android Virtual Devices:
    Name: Galaxy_Nexus_API_17
  Device: Galaxy Nexus (Google)
    Path: /home/piotr/.android/avd/Galaxy_Nexus_API_17.avd
  Target: Google APIs (Google Inc.)
          Based on: Android 4.2 (Jelly Bean) Tag/ABI: google_apis/x86
    Skin: galaxy_nexus
  Sdcard: /home/piotr/.android/avd/Galaxy_Nexus_API_17.avd/sdcard.img
---------
    Name: Nexus_5X_API_23
  Device: Nexus 5X (Google)
    Path: /home/piotr/.android/avd/Nexus_5X_API_23.avd
  Target: Google APIs (Google Inc.)
          Based on: Android 6.0 (Marshmallow) Tag/ABI: google_apis/x86
    Skin: nexus_5x
  Sdcard: /home/piotr/.android/avd/Nexus_5X_API_23.avd/sdcard.img

Copy name of device you want to run and then

cd ~/Android/Sdk/tools && ./emulator -avd NAME_OF_YOUR_DEVICE

in my case:

cd ~/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_23


In the ANDROID_HOME folder you will have tools folder

In Mac/Linux emulator -avd <avdName> In Windows emulator.exe -avd <avdName>

If you are using API 24 You can get the names of the emulator from the list android list avds If you are using API 25 then you will get it with avdmanager in toolsbin avdmanager list avds


Try this

  • Open the command prompt and change the directory where your sdk is placed D:SoftwaresAndroidsdktoolsbin>
  • now add your avdmanager in this,now your full code is D:SoftwaresAndroidsdktoolsbin>avdmanager list avd
  • it will show you a list of emulator device that you have already created after few seconds
  • now type cd..
  • and run your emulator with this cmd, Here my emulator name is Tablet_API_25 so I have typed this name after the -avd.

    D:SoftwaresAndroidsdktools>emulator -avd Tablet_API_25

  • 在这里输入图像描述

    链接地址: http://www.djcxy.com/p/90674.html

    上一篇: 在Mac OS上安装Android模拟器上的apk

    下一篇: 在没有Android Studio的情况下运行AVD Emulator