Run AVD Emulator without Android Studio









up vote
113
down vote

favorite
52












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?










share|improve this question



















  • 2




    This is my main gripe about android development, the mainstream AOSP support for cli based DIY development with your own text editor is almost non existent... I'm comparing to Vue/React development, which is a world ahead.
    – Ray Foss
    Jan 24 at 20:10














up vote
113
down vote

favorite
52












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?










share|improve this question



















  • 2




    This is my main gripe about android development, the mainstream AOSP support for cli based DIY development with your own text editor is almost non existent... I'm comparing to Vue/React development, which is a world ahead.
    – Ray Foss
    Jan 24 at 20:10












up vote
113
down vote

favorite
52









up vote
113
down vote

favorite
52






52





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?










share|improve this question















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?







avd android-avd






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 26 '17 at 12:01









hippietrail

7,4711070107




7,4711070107










asked Mar 10 '17 at 12:57









user668338

7703717




7703717







  • 2




    This is my main gripe about android development, the mainstream AOSP support for cli based DIY development with your own text editor is almost non existent... I'm comparing to Vue/React development, which is a world ahead.
    – Ray Foss
    Jan 24 at 20:10












  • 2




    This is my main gripe about android development, the mainstream AOSP support for cli based DIY development with your own text editor is almost non existent... I'm comparing to Vue/React development, which is a world ahead.
    – Ray Foss
    Jan 24 at 20:10







2




2




This is my main gripe about android development, the mainstream AOSP support for cli based DIY development with your own text editor is almost non existent... I'm comparing to Vue/React development, which is a world ahead.
– Ray Foss
Jan 24 at 20:10




This is my main gripe about android development, the mainstream AOSP support for cli based DIY development with your own text editor is almost non existent... I'm comparing to Vue/React development, which is a world ahead.
– Ray Foss
Jan 24 at 20:10












21 Answers
21






active

oldest

votes

















up vote
143
down vote













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






share|improve this answer


















  • 28




    Just a heads-up: For me the sdk was located in /Users/<username>/Library/Android/sdk
    – flaky
    May 5 '17 at 6:51






  • 2




    The last command gives me an error bash: ./emulator: No such file or directory. Any ideas how to solve this ?
    – Dhyey
    Jul 23 '17 at 7:37






  • 1




    Depending on how installation of the SDK occurred, you may have the environment variable $ANDROID_HOME set to the SDK location. cd $ANDROID_HOME/tools/bin && ./avdmanager list avd and cd $ANDROID_HOME/tools && ./emulator -avd <NAME_OF_YOUR_DEVICE>
    – Joshua King
    Sep 22 '17 at 14:58







  • 1




    @PiotrGalas thank you so much. Finally after a long research your answer was very much helpful
    – Pitchiah Natarajan
    Feb 27 at 8:57






  • 1




    Slightly Shorter command: ~/Library/Android/Sdk/tools/emulator -avd Nexus_5 ... (no need for cd and && ./) this way your current directory won't change
    – Sodj
    Aug 30 at 12:28

















up vote
33
down vote













On MacOS



First list down the installed emulators



~/Library/Android/sdk/tools/emulator -list-avds


then run an emulator



~/Library/Android/sdk/tools/emulator -avd Nexus_5X_API_27





share|improve this answer
















  • 2




    Nice! Shortcut to run the first in the list: ~/Library/Android/sdk/tools/emulator -avd $(~/Library/Android/sdk/tools/emulator -list-avds | head -n 1)
    – James Broad
    Mar 22 at 17:42










  • This was very helpfull thanx @zeeawan .!
    – Tharusha Shehan
    Nov 8 at 7:10

















up vote
23
down vote













Try this



1. Complete Video tutorials (For all windows versions)



OR



2. Text tutorials



  • 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 typecd..


  • 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



enter image description here






share|improve this answer


















  • 7




    on my Windows 10 machine, "avdmanager list avd" command did not work; i used "emulator -list-avds" in the tools/ directory. In case this helps someone else :)
    – dean.huczok
    Oct 4 '17 at 23:42






  • 2




    why i received error, [1020]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ..emulatorlib64qtlib Could not launch 'C:Usersafaid.androidavd..emulatorqemuwindows-x86_64qemu-system-x86_64.exe': No such file or directory
    – Han Whiteking
    Nov 16 '17 at 1:22











  • @HanWhiteking Have you tried to check the path you are specifying is correct or not ?
    – Sunil
    Nov 16 '17 at 4:34

















up vote
20
down vote













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






share|improve this answer





























    up vote
    15
    down vote













    You can make a batch file, that will open your emulator directly without opening Android Studio. If you are using Windows:



    • Open Notepad


    • New file



    • Copy the next lines into your file:



      C:/
      cd C:Users%username%AppDataLocalAndroidsdktools
      emulator @[YOUR_EMULATOR_DEVICE_NAME]


      Notes:



      • Replace [YOUR_EMULATOR_DEVICE_NAME] with the device name you created in emulator


      • To get the device name go to: C:Users%username%AppDataLocalAndroidsdktools


      • Run cmd and type: emulator -list-avds


      • Copy the device name and paste it in the batch file



    • Save the file as emulator.bat and close


    • Now double click on emulator.bat and you got the emulator running!






    share|improve this answer






















    • Windows also has %LOCALAPPDATA% as a variable, you could shorten that to: %LOCALAPPDATA%Androidsdkemulatoremulator @Pixel_2_API_27 (part after the @ is a device name, obtained from the mentioned -list-avds
      – amenthes
      Apr 9 at 19:01











    • Just typing C: is enough to change the drive. When I include the forward slash, ie C:/, I get an error in both Powershell and Command Prompt.
      – Rokit
      May 19 at 20:37


















    up vote
    11
    down vote













    to list the emulators you have



    ~/Library/Android/sdk/tools/emulator -list-avds


    for example, I have this Nexus_5X_API_24



    so the command to run that emulator is



    cd ~/Library/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_24





    share|improve this answer




















    • Yeah, the emulator binary has the -list-avds option. This is the easier way
      – Subin
      Jul 30 at 11:22

















    up vote
    7
    down vote













    Here’s what you need to do:



    1.Download and extract the SDK.
    2.Open a terminal and navigate to the “tools” directory.
    3.Launch the “android” tool (./android if you are currently in the tools directory).
    4.Tick off the “SDK Platform” for each version of Android that you’d like to use in your emulator.
    5.Click the “Install N Packages” button.
    6.Click each package and tick off “Accept License” (legally, I’m probably required to tell you that this step may take several hours as you read each license ;).
    7.Done with those licenses? Great. Click “Install”. Wait for the SDK manager to finish installing your packages, then you can close it.
    8.Back in your terminal, still in the tools directory, enter ./android avd which will launch the Android Virtual Device Manager.
    9.Click “New” and fill out the form to build the device you’d like to emulate. In the “Target” dropdown, you’ll see the SDK Platforms that you installed earlier. If the version you need is missing, you need to go back and install it. Click OK when you’re done.
    10.Click on the device that you just created and click the “Start” button, tweak any options that you need on the Launch Options window, and click “Launch”.



    Check this question's answer also.






    share|improve this answer


















    • 5




      The android tool is now deprecated
      – illright
      Aug 22 '17 at 11:06

















    up vote
    6
    down vote













    Assuming you have installed Android studio properly,Open a command prompt and type
    emulator -list-avds which will display all the devices and then type emulator @avd_name where avd_name is the the name of your emulator installed.






    share|improve this answer



























      up vote
      6
      down vote













      Firstly change the directory where your avd devices are listed; for me it is here:



      cd ~/Android/Sdk/tools



      Then run the emulator by following command:
      ./emulator -avd Your_avd_device_name



      For me it is:



      ./emulator -avd Nexus_5X_API_27



      That's all.






      share|improve this answer


















      • 1




        Awesome.. so simple. Thanks
        – Chris J Kikoti
        Apr 8 at 20:17

















      up vote
      5
      down vote













      I already have the Studio installed. But without starting (not installing) the Android Studio you can directly start the emulator with



      C:UsersYOURUSERNAMEAppDataLocalAndroidSdktoolsemulator.exe -netdelay none -netspeed full -avd YOUR_AVD_NAME






      share|improve this answer



























        up vote
        4
        down vote













        The path for emulator is



        /Users/<Username>/AppData/Local/Android/sdk/tools





        share|improve this answer





























          up vote
          4
          down vote













          Assuming you've got Android Studio installed, and SDK in your PATH, it's:



          emulator -avd avd_name



          To get a list of AVD names, run:



          emulator -list-avds



          Source: https://developer.android.com/studio/run/emulator-commandline.html






          share|improve this answer



























            up vote
            3
            down vote













            For Linux/Ubuntu



            Create a new File from Terminal as



            gedit emulator.sh (Use any Name for file here i have used "emulator")



            now write following lines in this file



            cd /home/userName/Android/Sdk/tools/



            ./emulator @your created Android device Name



            (here after @ write the name of your AVD e.g



            ./emulator @Nexus_5X_API_27
            )



            Now save the file and run your emulator using following commands



            ./emulator.sh



            In case of Permission denied use following command before above command



            chmod +x emulator.sh



            All set Go..






            share|improve this answer




















            • amazing and helped save my time so much
              – Asfand Shabbir
              Mar 28 at 19:06










            • I tried following the above listed commands, but still not working.
              – NarendraJi
              May 10 at 14:10

















            up vote
            2
            down vote













            Got it working for Windows 10:



            C:UsersUserNameAppDataLocalAndroidSdktools>emulator -list-avds
            Nexus_5X_API_28
            C:UsersUserNameAppDataLocalAndroidSdkemulator>emulator -avd Nexus_5X_API_28





            share|improve this answer



























              up vote
              2
              down vote













              This is the commands on Mac



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


              then



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





              share|improve this answer



























                up vote
                1
                down vote













                if you installed Git on your system. then you can run .sh bash code. I create the bash code for search from your created ADV Devices and list them. then you can select the number of adv device for run emulator without running Android studio.



                link:
                adv-emulator.sh



                note [windows os]: please first add %appdata%..LocalAndroidSdkemulator to your system Environment path, otherwise the bash-code not work.






                share|improve this answer



























                  up vote
                  1
                  down vote













                  On windows



                  ......Androidsdktoolsbinavdmanager list avds

                  ......Androidsdktoolsemulator.exe -avd Nexus_5X_API_27





                  share|improve this answer
















                  • 2




                    Brings up PANIC: Missing emulator engine program for 'x86' CPU. Although I can start it in Android Studio?
                    – user668338
                    Jul 11 at 17:42











                  • You can go to $ANDROID_HOME/emulator -avd DEVICE_NAME stackoverflow.com/questions/26483370/…
                    – brownmagik352
                    Sep 8 at 0:51

















                  up vote
                  1
                  down vote













                  I am working with a React Native project and I also faced this problem



                  I solved it by making a .bat file in my desktop that I can open fast



                  The content of the .bat is



                  C:UsershariaAppDataLocalAndroidsdkemulatoremulator -avd Pixel_2_XL_API_27


                  Where haria is my Windows username and
                  Pixel_2_XL_API_27 is my emulator name




                  If you want to see your emulator name, open CMD (or PowerShell) and type (In Windows)




                  cd C:UsershariaAppDataLocalAndroidsdkemulator




                  Then to see the emulator(s) name




                  ./emulator -list-avds







                  share|improve this answer



























                    up vote
                    0
                    down vote













                    For Windows



                    In case anyone looking for shortcut / batch script - Gist - Download batch file.



                    @echo off
                    IF [%1]== (GOTO ExitWithPrompt)
                    set i=1
                    FOR /F "delims=" %%i IN ('emulator -list-avds') DO (
                    set /A i=i+1
                    set em=%%i
                    if %i% == %1 (
                    echo Starting %em%
                    emulator -avd %em%
                    EXIT /B 0
                    )
                    )
                    GOTO :Exit
                    :ExitWithPrompt
                    emulator -list-avds
                    echo Please enter the emulator number to start

                    :Exit
                    EXIT /B 0


                    Usage



                    D:>start-emulator
                    Nexus_5_API_26
                    Please enter the emulator number to start

                    D:>start-emulator 1
                    Starting Nexus_5_API_26
                    HAX is working and emulator runs in fast virt mode.





                    share|improve this answer






















                    • This lists me exactly 0 AVDs available. How to install/download/seetup AVD from commandline?
                      – Tino
                      Oct 22 at 10:05










                    • @Tino I will share seperate gist for that by tomorrow EOD.
                      – Prachil Tambe
                      Oct 22 at 10:07

















                    up vote
                    0
                    down vote













                    (Only for Windows)
                    Why to torture yourself? Make a Simple BAT file ! :



                    1. Open Notepad

                    2. Create the command as shown below

                    3. Save as *.bat

                    4. (Optional) Create a shortcut to that *.bat, rename shortcut and change icon

                    Here is the command:




                    cd /d yourSdkPathemulator && emulator -avd yourAVDName




                    Example:




                    cd /d D:Android_SDKemulator && emulator -avd Nexus_5_API_28







                    share|improve this answer



























                      up vote
                      0
                      down vote













                      If you are on windows, what about a shortcut ? It is very easy to place whatever you want ant the icon is descriptive and nice.



                      • First, navigate to your android sdk, probably at C:UsersYOURUSERNAMEAppDataLocalAndroidSdktools

                      • Then right click on emulator.exe and then click create shortcut.

                      • Your new and shiny shortcut gets created, probably with a predefined name.

                      • Right click on the shortcut, and on the target field (my computer is on spanish) add an extra parameter with the name of your device with an @ in front (take a look at the picture below )

                      shortcut params



                      now you can do whatever yhou want with that shortcut, put on the desktop, bind it to the start-menu or whatever






                      share|improve this answer




















                        Your Answer






                        StackExchange.ifUsing("editor", function ()
                        StackExchange.using("externalEditor", function ()
                        StackExchange.using("snippets", function ()
                        StackExchange.snippets.init();
                        );
                        );
                        , "code-snippets");

                        StackExchange.ready(function()
                        var channelOptions =
                        tags: "".split(" "),
                        id: "1"
                        ;
                        initTagRenderer("".split(" "), "".split(" "), channelOptions);

                        StackExchange.using("externalEditor", function()
                        // Have to fire editor after snippets, if snippets enabled
                        if (StackExchange.settings.snippets.snippetsEnabled)
                        StackExchange.using("snippets", function()
                        createEditor();
                        );

                        else
                        createEditor();

                        );

                        function createEditor()
                        StackExchange.prepareEditor(
                        heartbeatType: 'answer',
                        convertImagesToLinks: true,
                        noModals: true,
                        showLowRepImageUploadWarning: true,
                        reputationToPostImages: 10,
                        bindNavPrevention: true,
                        postfix: "",
                        imageUploader:
                        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
                        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
                        allowUrls: true
                        ,
                        onDemand: true,
                        discardSelector: ".discard-answer"
                        ,immediatelyShowMarkdownHelp:true
                        );



                        );













                         

                        draft saved


                        draft discarded


















                        StackExchange.ready(
                        function ()
                        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f42718973%2frun-avd-emulator-without-android-studio%23new-answer', 'question_page');

                        );

                        Post as a guest






























                        21 Answers
                        21






                        active

                        oldest

                        votes








                        21 Answers
                        21






                        active

                        oldest

                        votes









                        active

                        oldest

                        votes






                        active

                        oldest

                        votes








                        up vote
                        143
                        down vote













                        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






                        share|improve this answer


















                        • 28




                          Just a heads-up: For me the sdk was located in /Users/<username>/Library/Android/sdk
                          – flaky
                          May 5 '17 at 6:51






                        • 2




                          The last command gives me an error bash: ./emulator: No such file or directory. Any ideas how to solve this ?
                          – Dhyey
                          Jul 23 '17 at 7:37






                        • 1




                          Depending on how installation of the SDK occurred, you may have the environment variable $ANDROID_HOME set to the SDK location. cd $ANDROID_HOME/tools/bin && ./avdmanager list avd and cd $ANDROID_HOME/tools && ./emulator -avd <NAME_OF_YOUR_DEVICE>
                          – Joshua King
                          Sep 22 '17 at 14:58







                        • 1




                          @PiotrGalas thank you so much. Finally after a long research your answer was very much helpful
                          – Pitchiah Natarajan
                          Feb 27 at 8:57






                        • 1




                          Slightly Shorter command: ~/Library/Android/Sdk/tools/emulator -avd Nexus_5 ... (no need for cd and && ./) this way your current directory won't change
                          – Sodj
                          Aug 30 at 12:28














                        up vote
                        143
                        down vote













                        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






                        share|improve this answer


















                        • 28




                          Just a heads-up: For me the sdk was located in /Users/<username>/Library/Android/sdk
                          – flaky
                          May 5 '17 at 6:51






                        • 2




                          The last command gives me an error bash: ./emulator: No such file or directory. Any ideas how to solve this ?
                          – Dhyey
                          Jul 23 '17 at 7:37






                        • 1




                          Depending on how installation of the SDK occurred, you may have the environment variable $ANDROID_HOME set to the SDK location. cd $ANDROID_HOME/tools/bin && ./avdmanager list avd and cd $ANDROID_HOME/tools && ./emulator -avd <NAME_OF_YOUR_DEVICE>
                          – Joshua King
                          Sep 22 '17 at 14:58







                        • 1




                          @PiotrGalas thank you so much. Finally after a long research your answer was very much helpful
                          – Pitchiah Natarajan
                          Feb 27 at 8:57






                        • 1




                          Slightly Shorter command: ~/Library/Android/Sdk/tools/emulator -avd Nexus_5 ... (no need for cd and && ./) this way your current directory won't change
                          – Sodj
                          Aug 30 at 12:28












                        up vote
                        143
                        down vote










                        up vote
                        143
                        down vote









                        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






                        share|improve this answer














                        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







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Jul 23 '17 at 17:46

























                        answered Mar 16 '17 at 21:31









                        Piotr Galas

                        2,16011223




                        2,16011223







                        • 28




                          Just a heads-up: For me the sdk was located in /Users/<username>/Library/Android/sdk
                          – flaky
                          May 5 '17 at 6:51






                        • 2




                          The last command gives me an error bash: ./emulator: No such file or directory. Any ideas how to solve this ?
                          – Dhyey
                          Jul 23 '17 at 7:37






                        • 1




                          Depending on how installation of the SDK occurred, you may have the environment variable $ANDROID_HOME set to the SDK location. cd $ANDROID_HOME/tools/bin && ./avdmanager list avd and cd $ANDROID_HOME/tools && ./emulator -avd <NAME_OF_YOUR_DEVICE>
                          – Joshua King
                          Sep 22 '17 at 14:58







                        • 1




                          @PiotrGalas thank you so much. Finally after a long research your answer was very much helpful
                          – Pitchiah Natarajan
                          Feb 27 at 8:57






                        • 1




                          Slightly Shorter command: ~/Library/Android/Sdk/tools/emulator -avd Nexus_5 ... (no need for cd and && ./) this way your current directory won't change
                          – Sodj
                          Aug 30 at 12:28












                        • 28




                          Just a heads-up: For me the sdk was located in /Users/<username>/Library/Android/sdk
                          – flaky
                          May 5 '17 at 6:51






                        • 2




                          The last command gives me an error bash: ./emulator: No such file or directory. Any ideas how to solve this ?
                          – Dhyey
                          Jul 23 '17 at 7:37






                        • 1




                          Depending on how installation of the SDK occurred, you may have the environment variable $ANDROID_HOME set to the SDK location. cd $ANDROID_HOME/tools/bin && ./avdmanager list avd and cd $ANDROID_HOME/tools && ./emulator -avd <NAME_OF_YOUR_DEVICE>
                          – Joshua King
                          Sep 22 '17 at 14:58







                        • 1




                          @PiotrGalas thank you so much. Finally after a long research your answer was very much helpful
                          – Pitchiah Natarajan
                          Feb 27 at 8:57






                        • 1




                          Slightly Shorter command: ~/Library/Android/Sdk/tools/emulator -avd Nexus_5 ... (no need for cd and && ./) this way your current directory won't change
                          – Sodj
                          Aug 30 at 12:28







                        28




                        28




                        Just a heads-up: For me the sdk was located in /Users/<username>/Library/Android/sdk
                        – flaky
                        May 5 '17 at 6:51




                        Just a heads-up: For me the sdk was located in /Users/<username>/Library/Android/sdk
                        – flaky
                        May 5 '17 at 6:51




                        2




                        2




                        The last command gives me an error bash: ./emulator: No such file or directory. Any ideas how to solve this ?
                        – Dhyey
                        Jul 23 '17 at 7:37




                        The last command gives me an error bash: ./emulator: No such file or directory. Any ideas how to solve this ?
                        – Dhyey
                        Jul 23 '17 at 7:37




                        1




                        1




                        Depending on how installation of the SDK occurred, you may have the environment variable $ANDROID_HOME set to the SDK location. cd $ANDROID_HOME/tools/bin && ./avdmanager list avd and cd $ANDROID_HOME/tools && ./emulator -avd <NAME_OF_YOUR_DEVICE>
                        – Joshua King
                        Sep 22 '17 at 14:58





                        Depending on how installation of the SDK occurred, you may have the environment variable $ANDROID_HOME set to the SDK location. cd $ANDROID_HOME/tools/bin && ./avdmanager list avd and cd $ANDROID_HOME/tools && ./emulator -avd <NAME_OF_YOUR_DEVICE>
                        – Joshua King
                        Sep 22 '17 at 14:58





                        1




                        1




                        @PiotrGalas thank you so much. Finally after a long research your answer was very much helpful
                        – Pitchiah Natarajan
                        Feb 27 at 8:57




                        @PiotrGalas thank you so much. Finally after a long research your answer was very much helpful
                        – Pitchiah Natarajan
                        Feb 27 at 8:57




                        1




                        1




                        Slightly Shorter command: ~/Library/Android/Sdk/tools/emulator -avd Nexus_5 ... (no need for cd and && ./) this way your current directory won't change
                        – Sodj
                        Aug 30 at 12:28




                        Slightly Shorter command: ~/Library/Android/Sdk/tools/emulator -avd Nexus_5 ... (no need for cd and && ./) this way your current directory won't change
                        – Sodj
                        Aug 30 at 12:28












                        up vote
                        33
                        down vote













                        On MacOS



                        First list down the installed emulators



                        ~/Library/Android/sdk/tools/emulator -list-avds


                        then run an emulator



                        ~/Library/Android/sdk/tools/emulator -avd Nexus_5X_API_27





                        share|improve this answer
















                        • 2




                          Nice! Shortcut to run the first in the list: ~/Library/Android/sdk/tools/emulator -avd $(~/Library/Android/sdk/tools/emulator -list-avds | head -n 1)
                          – James Broad
                          Mar 22 at 17:42










                        • This was very helpfull thanx @zeeawan .!
                          – Tharusha Shehan
                          Nov 8 at 7:10














                        up vote
                        33
                        down vote













                        On MacOS



                        First list down the installed emulators



                        ~/Library/Android/sdk/tools/emulator -list-avds


                        then run an emulator



                        ~/Library/Android/sdk/tools/emulator -avd Nexus_5X_API_27





                        share|improve this answer
















                        • 2




                          Nice! Shortcut to run the first in the list: ~/Library/Android/sdk/tools/emulator -avd $(~/Library/Android/sdk/tools/emulator -list-avds | head -n 1)
                          – James Broad
                          Mar 22 at 17:42










                        • This was very helpfull thanx @zeeawan .!
                          – Tharusha Shehan
                          Nov 8 at 7:10












                        up vote
                        33
                        down vote










                        up vote
                        33
                        down vote









                        On MacOS



                        First list down the installed emulators



                        ~/Library/Android/sdk/tools/emulator -list-avds


                        then run an emulator



                        ~/Library/Android/sdk/tools/emulator -avd Nexus_5X_API_27





                        share|improve this answer












                        On MacOS



                        First list down the installed emulators



                        ~/Library/Android/sdk/tools/emulator -list-avds


                        then run an emulator



                        ~/Library/Android/sdk/tools/emulator -avd Nexus_5X_API_27






                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Feb 11 at 7:21









                        zeeawan

                        3,76813437




                        3,76813437







                        • 2




                          Nice! Shortcut to run the first in the list: ~/Library/Android/sdk/tools/emulator -avd $(~/Library/Android/sdk/tools/emulator -list-avds | head -n 1)
                          – James Broad
                          Mar 22 at 17:42










                        • This was very helpfull thanx @zeeawan .!
                          – Tharusha Shehan
                          Nov 8 at 7:10












                        • 2




                          Nice! Shortcut to run the first in the list: ~/Library/Android/sdk/tools/emulator -avd $(~/Library/Android/sdk/tools/emulator -list-avds | head -n 1)
                          – James Broad
                          Mar 22 at 17:42










                        • This was very helpfull thanx @zeeawan .!
                          – Tharusha Shehan
                          Nov 8 at 7:10







                        2




                        2




                        Nice! Shortcut to run the first in the list: ~/Library/Android/sdk/tools/emulator -avd $(~/Library/Android/sdk/tools/emulator -list-avds | head -n 1)
                        – James Broad
                        Mar 22 at 17:42




                        Nice! Shortcut to run the first in the list: ~/Library/Android/sdk/tools/emulator -avd $(~/Library/Android/sdk/tools/emulator -list-avds | head -n 1)
                        – James Broad
                        Mar 22 at 17:42












                        This was very helpfull thanx @zeeawan .!
                        – Tharusha Shehan
                        Nov 8 at 7:10




                        This was very helpfull thanx @zeeawan .!
                        – Tharusha Shehan
                        Nov 8 at 7:10










                        up vote
                        23
                        down vote













                        Try this



                        1. Complete Video tutorials (For all windows versions)



                        OR



                        2. Text tutorials



                        • 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 typecd..


                        • 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



                        enter image description here






                        share|improve this answer


















                        • 7




                          on my Windows 10 machine, "avdmanager list avd" command did not work; i used "emulator -list-avds" in the tools/ directory. In case this helps someone else :)
                          – dean.huczok
                          Oct 4 '17 at 23:42






                        • 2




                          why i received error, [1020]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ..emulatorlib64qtlib Could not launch 'C:Usersafaid.androidavd..emulatorqemuwindows-x86_64qemu-system-x86_64.exe': No such file or directory
                          – Han Whiteking
                          Nov 16 '17 at 1:22











                        • @HanWhiteking Have you tried to check the path you are specifying is correct or not ?
                          – Sunil
                          Nov 16 '17 at 4:34














                        up vote
                        23
                        down vote













                        Try this



                        1. Complete Video tutorials (For all windows versions)



                        OR



                        2. Text tutorials



                        • 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 typecd..


                        • 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



                        enter image description here






                        share|improve this answer


















                        • 7




                          on my Windows 10 machine, "avdmanager list avd" command did not work; i used "emulator -list-avds" in the tools/ directory. In case this helps someone else :)
                          – dean.huczok
                          Oct 4 '17 at 23:42






                        • 2




                          why i received error, [1020]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ..emulatorlib64qtlib Could not launch 'C:Usersafaid.androidavd..emulatorqemuwindows-x86_64qemu-system-x86_64.exe': No such file or directory
                          – Han Whiteking
                          Nov 16 '17 at 1:22











                        • @HanWhiteking Have you tried to check the path you are specifying is correct or not ?
                          – Sunil
                          Nov 16 '17 at 4:34












                        up vote
                        23
                        down vote










                        up vote
                        23
                        down vote









                        Try this



                        1. Complete Video tutorials (For all windows versions)



                        OR



                        2. Text tutorials



                        • 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 typecd..


                        • 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



                        enter image description here






                        share|improve this answer














                        Try this



                        1. Complete Video tutorials (For all windows versions)



                        OR



                        2. Text tutorials



                        • 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 typecd..


                        • 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



                        enter image description here







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        edited Sep 3 at 11:31

























                        answered Sep 28 '17 at 12:17









                        Sunil

                        1,5071929




                        1,5071929







                        • 7




                          on my Windows 10 machine, "avdmanager list avd" command did not work; i used "emulator -list-avds" in the tools/ directory. In case this helps someone else :)
                          – dean.huczok
                          Oct 4 '17 at 23:42






                        • 2




                          why i received error, [1020]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ..emulatorlib64qtlib Could not launch 'C:Usersafaid.androidavd..emulatorqemuwindows-x86_64qemu-system-x86_64.exe': No such file or directory
                          – Han Whiteking
                          Nov 16 '17 at 1:22











                        • @HanWhiteking Have you tried to check the path you are specifying is correct or not ?
                          – Sunil
                          Nov 16 '17 at 4:34












                        • 7




                          on my Windows 10 machine, "avdmanager list avd" command did not work; i used "emulator -list-avds" in the tools/ directory. In case this helps someone else :)
                          – dean.huczok
                          Oct 4 '17 at 23:42






                        • 2




                          why i received error, [1020]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ..emulatorlib64qtlib Could not launch 'C:Usersafaid.androidavd..emulatorqemuwindows-x86_64qemu-system-x86_64.exe': No such file or directory
                          – Han Whiteking
                          Nov 16 '17 at 1:22











                        • @HanWhiteking Have you tried to check the path you are specifying is correct or not ?
                          – Sunil
                          Nov 16 '17 at 4:34







                        7




                        7




                        on my Windows 10 machine, "avdmanager list avd" command did not work; i used "emulator -list-avds" in the tools/ directory. In case this helps someone else :)
                        – dean.huczok
                        Oct 4 '17 at 23:42




                        on my Windows 10 machine, "avdmanager list avd" command did not work; i used "emulator -list-avds" in the tools/ directory. In case this helps someone else :)
                        – dean.huczok
                        Oct 4 '17 at 23:42




                        2




                        2




                        why i received error, [1020]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ..emulatorlib64qtlib Could not launch 'C:Usersafaid.androidavd..emulatorqemuwindows-x86_64qemu-system-x86_64.exe': No such file or directory
                        – Han Whiteking
                        Nov 16 '17 at 1:22





                        why i received error, [1020]:ERROR:android/android-emu/android/qt/qt_setup.cpp:28:Qt library not found at ..emulatorlib64qtlib Could not launch 'C:Usersafaid.androidavd..emulatorqemuwindows-x86_64qemu-system-x86_64.exe': No such file or directory
                        – Han Whiteking
                        Nov 16 '17 at 1:22













                        @HanWhiteking Have you tried to check the path you are specifying is correct or not ?
                        – Sunil
                        Nov 16 '17 at 4:34




                        @HanWhiteking Have you tried to check the path you are specifying is correct or not ?
                        – Sunil
                        Nov 16 '17 at 4:34










                        up vote
                        20
                        down vote













                        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






                        share|improve this answer


























                          up vote
                          20
                          down vote













                          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






                          share|improve this answer
























                            up vote
                            20
                            down vote










                            up vote
                            20
                            down vote









                            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






                            share|improve this answer














                            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







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Mar 29 '17 at 11:19

























                            answered Mar 29 '17 at 11:14









                            Soumya Swaroop

                            23613




                            23613




















                                up vote
                                15
                                down vote













                                You can make a batch file, that will open your emulator directly without opening Android Studio. If you are using Windows:



                                • Open Notepad


                                • New file



                                • Copy the next lines into your file:



                                  C:/
                                  cd C:Users%username%AppDataLocalAndroidsdktools
                                  emulator @[YOUR_EMULATOR_DEVICE_NAME]


                                  Notes:



                                  • Replace [YOUR_EMULATOR_DEVICE_NAME] with the device name you created in emulator


                                  • To get the device name go to: C:Users%username%AppDataLocalAndroidsdktools


                                  • Run cmd and type: emulator -list-avds


                                  • Copy the device name and paste it in the batch file



                                • Save the file as emulator.bat and close


                                • Now double click on emulator.bat and you got the emulator running!






                                share|improve this answer






















                                • Windows also has %LOCALAPPDATA% as a variable, you could shorten that to: %LOCALAPPDATA%Androidsdkemulatoremulator @Pixel_2_API_27 (part after the @ is a device name, obtained from the mentioned -list-avds
                                  – amenthes
                                  Apr 9 at 19:01











                                • Just typing C: is enough to change the drive. When I include the forward slash, ie C:/, I get an error in both Powershell and Command Prompt.
                                  – Rokit
                                  May 19 at 20:37















                                up vote
                                15
                                down vote













                                You can make a batch file, that will open your emulator directly without opening Android Studio. If you are using Windows:



                                • Open Notepad


                                • New file



                                • Copy the next lines into your file:



                                  C:/
                                  cd C:Users%username%AppDataLocalAndroidsdktools
                                  emulator @[YOUR_EMULATOR_DEVICE_NAME]


                                  Notes:



                                  • Replace [YOUR_EMULATOR_DEVICE_NAME] with the device name you created in emulator


                                  • To get the device name go to: C:Users%username%AppDataLocalAndroidsdktools


                                  • Run cmd and type: emulator -list-avds


                                  • Copy the device name and paste it in the batch file



                                • Save the file as emulator.bat and close


                                • Now double click on emulator.bat and you got the emulator running!






                                share|improve this answer






















                                • Windows also has %LOCALAPPDATA% as a variable, you could shorten that to: %LOCALAPPDATA%Androidsdkemulatoremulator @Pixel_2_API_27 (part after the @ is a device name, obtained from the mentioned -list-avds
                                  – amenthes
                                  Apr 9 at 19:01











                                • Just typing C: is enough to change the drive. When I include the forward slash, ie C:/, I get an error in both Powershell and Command Prompt.
                                  – Rokit
                                  May 19 at 20:37













                                up vote
                                15
                                down vote










                                up vote
                                15
                                down vote









                                You can make a batch file, that will open your emulator directly without opening Android Studio. If you are using Windows:



                                • Open Notepad


                                • New file



                                • Copy the next lines into your file:



                                  C:/
                                  cd C:Users%username%AppDataLocalAndroidsdktools
                                  emulator @[YOUR_EMULATOR_DEVICE_NAME]


                                  Notes:



                                  • Replace [YOUR_EMULATOR_DEVICE_NAME] with the device name you created in emulator


                                  • To get the device name go to: C:Users%username%AppDataLocalAndroidsdktools


                                  • Run cmd and type: emulator -list-avds


                                  • Copy the device name and paste it in the batch file



                                • Save the file as emulator.bat and close


                                • Now double click on emulator.bat and you got the emulator running!






                                share|improve this answer














                                You can make a batch file, that will open your emulator directly without opening Android Studio. If you are using Windows:



                                • Open Notepad


                                • New file



                                • Copy the next lines into your file:



                                  C:/
                                  cd C:Users%username%AppDataLocalAndroidsdktools
                                  emulator @[YOUR_EMULATOR_DEVICE_NAME]


                                  Notes:



                                  • Replace [YOUR_EMULATOR_DEVICE_NAME] with the device name you created in emulator


                                  • To get the device name go to: C:Users%username%AppDataLocalAndroidsdktools


                                  • Run cmd and type: emulator -list-avds


                                  • Copy the device name and paste it in the batch file



                                • Save the file as emulator.bat and close


                                • Now double click on emulator.bat and you got the emulator running!







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Sep 8 at 19:21

























                                answered Aug 5 '17 at 13:38









                                mottaz hejaze

                                19016




                                19016











                                • Windows also has %LOCALAPPDATA% as a variable, you could shorten that to: %LOCALAPPDATA%Androidsdkemulatoremulator @Pixel_2_API_27 (part after the @ is a device name, obtained from the mentioned -list-avds
                                  – amenthes
                                  Apr 9 at 19:01











                                • Just typing C: is enough to change the drive. When I include the forward slash, ie C:/, I get an error in both Powershell and Command Prompt.
                                  – Rokit
                                  May 19 at 20:37

















                                • Windows also has %LOCALAPPDATA% as a variable, you could shorten that to: %LOCALAPPDATA%Androidsdkemulatoremulator @Pixel_2_API_27 (part after the @ is a device name, obtained from the mentioned -list-avds
                                  – amenthes
                                  Apr 9 at 19:01











                                • Just typing C: is enough to change the drive. When I include the forward slash, ie C:/, I get an error in both Powershell and Command Prompt.
                                  – Rokit
                                  May 19 at 20:37
















                                Windows also has %LOCALAPPDATA% as a variable, you could shorten that to: %LOCALAPPDATA%Androidsdkemulatoremulator @Pixel_2_API_27 (part after the @ is a device name, obtained from the mentioned -list-avds
                                – amenthes
                                Apr 9 at 19:01





                                Windows also has %LOCALAPPDATA% as a variable, you could shorten that to: %LOCALAPPDATA%Androidsdkemulatoremulator @Pixel_2_API_27 (part after the @ is a device name, obtained from the mentioned -list-avds
                                – amenthes
                                Apr 9 at 19:01













                                Just typing C: is enough to change the drive. When I include the forward slash, ie C:/, I get an error in both Powershell and Command Prompt.
                                – Rokit
                                May 19 at 20:37





                                Just typing C: is enough to change the drive. When I include the forward slash, ie C:/, I get an error in both Powershell and Command Prompt.
                                – Rokit
                                May 19 at 20:37











                                up vote
                                11
                                down vote













                                to list the emulators you have



                                ~/Library/Android/sdk/tools/emulator -list-avds


                                for example, I have this Nexus_5X_API_24



                                so the command to run that emulator is



                                cd ~/Library/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_24





                                share|improve this answer




















                                • Yeah, the emulator binary has the -list-avds option. This is the easier way
                                  – Subin
                                  Jul 30 at 11:22














                                up vote
                                11
                                down vote













                                to list the emulators you have



                                ~/Library/Android/sdk/tools/emulator -list-avds


                                for example, I have this Nexus_5X_API_24



                                so the command to run that emulator is



                                cd ~/Library/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_24





                                share|improve this answer




















                                • Yeah, the emulator binary has the -list-avds option. This is the easier way
                                  – Subin
                                  Jul 30 at 11:22












                                up vote
                                11
                                down vote










                                up vote
                                11
                                down vote









                                to list the emulators you have



                                ~/Library/Android/sdk/tools/emulator -list-avds


                                for example, I have this Nexus_5X_API_24



                                so the command to run that emulator is



                                cd ~/Library/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_24





                                share|improve this answer












                                to list the emulators you have



                                ~/Library/Android/sdk/tools/emulator -list-avds


                                for example, I have this Nexus_5X_API_24



                                so the command to run that emulator is



                                cd ~/Library/Android/Sdk/tools && ./emulator -avd Nexus_5X_API_24






                                share|improve this answer












                                share|improve this answer



                                share|improve this answer










                                answered May 12 at 14:40









                                DeyaEldeen

                                3,19952150




                                3,19952150











                                • Yeah, the emulator binary has the -list-avds option. This is the easier way
                                  – Subin
                                  Jul 30 at 11:22
















                                • Yeah, the emulator binary has the -list-avds option. This is the easier way
                                  – Subin
                                  Jul 30 at 11:22















                                Yeah, the emulator binary has the -list-avds option. This is the easier way
                                – Subin
                                Jul 30 at 11:22




                                Yeah, the emulator binary has the -list-avds option. This is the easier way
                                – Subin
                                Jul 30 at 11:22










                                up vote
                                7
                                down vote













                                Here’s what you need to do:



                                1.Download and extract the SDK.
                                2.Open a terminal and navigate to the “tools” directory.
                                3.Launch the “android” tool (./android if you are currently in the tools directory).
                                4.Tick off the “SDK Platform” for each version of Android that you’d like to use in your emulator.
                                5.Click the “Install N Packages” button.
                                6.Click each package and tick off “Accept License” (legally, I’m probably required to tell you that this step may take several hours as you read each license ;).
                                7.Done with those licenses? Great. Click “Install”. Wait for the SDK manager to finish installing your packages, then you can close it.
                                8.Back in your terminal, still in the tools directory, enter ./android avd which will launch the Android Virtual Device Manager.
                                9.Click “New” and fill out the form to build the device you’d like to emulate. In the “Target” dropdown, you’ll see the SDK Platforms that you installed earlier. If the version you need is missing, you need to go back and install it. Click OK when you’re done.
                                10.Click on the device that you just created and click the “Start” button, tweak any options that you need on the Launch Options window, and click “Launch”.



                                Check this question's answer also.






                                share|improve this answer


















                                • 5




                                  The android tool is now deprecated
                                  – illright
                                  Aug 22 '17 at 11:06














                                up vote
                                7
                                down vote













                                Here’s what you need to do:



                                1.Download and extract the SDK.
                                2.Open a terminal and navigate to the “tools” directory.
                                3.Launch the “android” tool (./android if you are currently in the tools directory).
                                4.Tick off the “SDK Platform” for each version of Android that you’d like to use in your emulator.
                                5.Click the “Install N Packages” button.
                                6.Click each package and tick off “Accept License” (legally, I’m probably required to tell you that this step may take several hours as you read each license ;).
                                7.Done with those licenses? Great. Click “Install”. Wait for the SDK manager to finish installing your packages, then you can close it.
                                8.Back in your terminal, still in the tools directory, enter ./android avd which will launch the Android Virtual Device Manager.
                                9.Click “New” and fill out the form to build the device you’d like to emulate. In the “Target” dropdown, you’ll see the SDK Platforms that you installed earlier. If the version you need is missing, you need to go back and install it. Click OK when you’re done.
                                10.Click on the device that you just created and click the “Start” button, tweak any options that you need on the Launch Options window, and click “Launch”.



                                Check this question's answer also.






                                share|improve this answer


















                                • 5




                                  The android tool is now deprecated
                                  – illright
                                  Aug 22 '17 at 11:06












                                up vote
                                7
                                down vote










                                up vote
                                7
                                down vote









                                Here’s what you need to do:



                                1.Download and extract the SDK.
                                2.Open a terminal and navigate to the “tools” directory.
                                3.Launch the “android” tool (./android if you are currently in the tools directory).
                                4.Tick off the “SDK Platform” for each version of Android that you’d like to use in your emulator.
                                5.Click the “Install N Packages” button.
                                6.Click each package and tick off “Accept License” (legally, I’m probably required to tell you that this step may take several hours as you read each license ;).
                                7.Done with those licenses? Great. Click “Install”. Wait for the SDK manager to finish installing your packages, then you can close it.
                                8.Back in your terminal, still in the tools directory, enter ./android avd which will launch the Android Virtual Device Manager.
                                9.Click “New” and fill out the form to build the device you’d like to emulate. In the “Target” dropdown, you’ll see the SDK Platforms that you installed earlier. If the version you need is missing, you need to go back and install it. Click OK when you’re done.
                                10.Click on the device that you just created and click the “Start” button, tweak any options that you need on the Launch Options window, and click “Launch”.



                                Check this question's answer also.






                                share|improve this answer














                                Here’s what you need to do:



                                1.Download and extract the SDK.
                                2.Open a terminal and navigate to the “tools” directory.
                                3.Launch the “android” tool (./android if you are currently in the tools directory).
                                4.Tick off the “SDK Platform” for each version of Android that you’d like to use in your emulator.
                                5.Click the “Install N Packages” button.
                                6.Click each package and tick off “Accept License” (legally, I’m probably required to tell you that this step may take several hours as you read each license ;).
                                7.Done with those licenses? Great. Click “Install”. Wait for the SDK manager to finish installing your packages, then you can close it.
                                8.Back in your terminal, still in the tools directory, enter ./android avd which will launch the Android Virtual Device Manager.
                                9.Click “New” and fill out the form to build the device you’d like to emulate. In the “Target” dropdown, you’ll see the SDK Platforms that you installed earlier. If the version you need is missing, you need to go back and install it. Click OK when you’re done.
                                10.Click on the device that you just created and click the “Start” button, tweak any options that you need on the Launch Options window, and click “Launch”.



                                Check this question's answer also.







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited May 23 '17 at 11:55









                                Community

                                11




                                11










                                answered Mar 10 '17 at 13:10









                                Shailesh

                                2,01911129




                                2,01911129







                                • 5




                                  The android tool is now deprecated
                                  – illright
                                  Aug 22 '17 at 11:06












                                • 5




                                  The android tool is now deprecated
                                  – illright
                                  Aug 22 '17 at 11:06







                                5




                                5




                                The android tool is now deprecated
                                – illright
                                Aug 22 '17 at 11:06




                                The android tool is now deprecated
                                – illright
                                Aug 22 '17 at 11:06










                                up vote
                                6
                                down vote













                                Assuming you have installed Android studio properly,Open a command prompt and type
                                emulator -list-avds which will display all the devices and then type emulator @avd_name where avd_name is the the name of your emulator installed.






                                share|improve this answer
























                                  up vote
                                  6
                                  down vote













                                  Assuming you have installed Android studio properly,Open a command prompt and type
                                  emulator -list-avds which will display all the devices and then type emulator @avd_name where avd_name is the the name of your emulator installed.






                                  share|improve this answer






















                                    up vote
                                    6
                                    down vote










                                    up vote
                                    6
                                    down vote









                                    Assuming you have installed Android studio properly,Open a command prompt and type
                                    emulator -list-avds which will display all the devices and then type emulator @avd_name where avd_name is the the name of your emulator installed.






                                    share|improve this answer












                                    Assuming you have installed Android studio properly,Open a command prompt and type
                                    emulator -list-avds which will display all the devices and then type emulator @avd_name where avd_name is the the name of your emulator installed.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jul 15 '17 at 12:35









                                    TRomesh

                                    1,1311431




                                    1,1311431




















                                        up vote
                                        6
                                        down vote













                                        Firstly change the directory where your avd devices are listed; for me it is here:



                                        cd ~/Android/Sdk/tools



                                        Then run the emulator by following command:
                                        ./emulator -avd Your_avd_device_name



                                        For me it is:



                                        ./emulator -avd Nexus_5X_API_27



                                        That's all.






                                        share|improve this answer


















                                        • 1




                                          Awesome.. so simple. Thanks
                                          – Chris J Kikoti
                                          Apr 8 at 20:17














                                        up vote
                                        6
                                        down vote













                                        Firstly change the directory where your avd devices are listed; for me it is here:



                                        cd ~/Android/Sdk/tools



                                        Then run the emulator by following command:
                                        ./emulator -avd Your_avd_device_name



                                        For me it is:



                                        ./emulator -avd Nexus_5X_API_27



                                        That's all.






                                        share|improve this answer


















                                        • 1




                                          Awesome.. so simple. Thanks
                                          – Chris J Kikoti
                                          Apr 8 at 20:17












                                        up vote
                                        6
                                        down vote










                                        up vote
                                        6
                                        down vote









                                        Firstly change the directory where your avd devices are listed; for me it is here:



                                        cd ~/Android/Sdk/tools



                                        Then run the emulator by following command:
                                        ./emulator -avd Your_avd_device_name



                                        For me it is:



                                        ./emulator -avd Nexus_5X_API_27



                                        That's all.






                                        share|improve this answer














                                        Firstly change the directory where your avd devices are listed; for me it is here:



                                        cd ~/Android/Sdk/tools



                                        Then run the emulator by following command:
                                        ./emulator -avd Your_avd_device_name



                                        For me it is:



                                        ./emulator -avd Nexus_5X_API_27



                                        That's all.







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Apr 1 at 21:07

























                                        answered Apr 1 at 19:05









                                        Vicrobot

                                        515315




                                        515315







                                        • 1




                                          Awesome.. so simple. Thanks
                                          – Chris J Kikoti
                                          Apr 8 at 20:17












                                        • 1




                                          Awesome.. so simple. Thanks
                                          – Chris J Kikoti
                                          Apr 8 at 20:17







                                        1




                                        1




                                        Awesome.. so simple. Thanks
                                        – Chris J Kikoti
                                        Apr 8 at 20:17




                                        Awesome.. so simple. Thanks
                                        – Chris J Kikoti
                                        Apr 8 at 20:17










                                        up vote
                                        5
                                        down vote













                                        I already have the Studio installed. But without starting (not installing) the Android Studio you can directly start the emulator with



                                        C:UsersYOURUSERNAMEAppDataLocalAndroidSdktoolsemulator.exe -netdelay none -netspeed full -avd YOUR_AVD_NAME






                                        share|improve this answer
























                                          up vote
                                          5
                                          down vote













                                          I already have the Studio installed. But without starting (not installing) the Android Studio you can directly start the emulator with



                                          C:UsersYOURUSERNAMEAppDataLocalAndroidSdktoolsemulator.exe -netdelay none -netspeed full -avd YOUR_AVD_NAME






                                          share|improve this answer






















                                            up vote
                                            5
                                            down vote










                                            up vote
                                            5
                                            down vote









                                            I already have the Studio installed. But without starting (not installing) the Android Studio you can directly start the emulator with



                                            C:UsersYOURUSERNAMEAppDataLocalAndroidSdktoolsemulator.exe -netdelay none -netspeed full -avd YOUR_AVD_NAME






                                            share|improve this answer












                                            I already have the Studio installed. But without starting (not installing) the Android Studio you can directly start the emulator with



                                            C:UsersYOURUSERNAMEAppDataLocalAndroidSdktoolsemulator.exe -netdelay none -netspeed full -avd YOUR_AVD_NAME







                                            share|improve this answer












                                            share|improve this answer



                                            share|improve this answer










                                            answered Mar 10 '17 at 17:59









                                            user668338

                                            7703717




                                            7703717




















                                                up vote
                                                4
                                                down vote













                                                The path for emulator is



                                                /Users/<Username>/AppData/Local/Android/sdk/tools





                                                share|improve this answer


























                                                  up vote
                                                  4
                                                  down vote













                                                  The path for emulator is



                                                  /Users/<Username>/AppData/Local/Android/sdk/tools





                                                  share|improve this answer
























                                                    up vote
                                                    4
                                                    down vote










                                                    up vote
                                                    4
                                                    down vote









                                                    The path for emulator is



                                                    /Users/<Username>/AppData/Local/Android/sdk/tools





                                                    share|improve this answer














                                                    The path for emulator is



                                                    /Users/<Username>/AppData/Local/Android/sdk/tools






                                                    share|improve this answer














                                                    share|improve this answer



                                                    share|improve this answer








                                                    edited May 23 '17 at 2:36









                                                    Pang

                                                    6,751156399




                                                    6,751156399










                                                    answered May 23 '17 at 1:49









                                                    Steve Blanco

                                                    411




                                                    411




















                                                        up vote
                                                        4
                                                        down vote













                                                        Assuming you've got Android Studio installed, and SDK in your PATH, it's:



                                                        emulator -avd avd_name



                                                        To get a list of AVD names, run:



                                                        emulator -list-avds



                                                        Source: https://developer.android.com/studio/run/emulator-commandline.html






                                                        share|improve this answer
























                                                          up vote
                                                          4
                                                          down vote













                                                          Assuming you've got Android Studio installed, and SDK in your PATH, it's:



                                                          emulator -avd avd_name



                                                          To get a list of AVD names, run:



                                                          emulator -list-avds



                                                          Source: https://developer.android.com/studio/run/emulator-commandline.html






                                                          share|improve this answer






















                                                            up vote
                                                            4
                                                            down vote










                                                            up vote
                                                            4
                                                            down vote









                                                            Assuming you've got Android Studio installed, and SDK in your PATH, it's:



                                                            emulator -avd avd_name



                                                            To get a list of AVD names, run:



                                                            emulator -list-avds



                                                            Source: https://developer.android.com/studio/run/emulator-commandline.html






                                                            share|improve this answer












                                                            Assuming you've got Android Studio installed, and SDK in your PATH, it's:



                                                            emulator -avd avd_name



                                                            To get a list of AVD names, run:



                                                            emulator -list-avds



                                                            Source: https://developer.android.com/studio/run/emulator-commandline.html







                                                            share|improve this answer












                                                            share|improve this answer



                                                            share|improve this answer










                                                            answered Sep 14 '17 at 11:23









                                                            designorant

                                                            1,498518




                                                            1,498518




















                                                                up vote
                                                                3
                                                                down vote













                                                                For Linux/Ubuntu



                                                                Create a new File from Terminal as



                                                                gedit emulator.sh (Use any Name for file here i have used "emulator")



                                                                now write following lines in this file



                                                                cd /home/userName/Android/Sdk/tools/



                                                                ./emulator @your created Android device Name



                                                                (here after @ write the name of your AVD e.g



                                                                ./emulator @Nexus_5X_API_27
                                                                )



                                                                Now save the file and run your emulator using following commands



                                                                ./emulator.sh



                                                                In case of Permission denied use following command before above command



                                                                chmod +x emulator.sh



                                                                All set Go..






                                                                share|improve this answer




















                                                                • amazing and helped save my time so much
                                                                  – Asfand Shabbir
                                                                  Mar 28 at 19:06










                                                                • I tried following the above listed commands, but still not working.
                                                                  – NarendraJi
                                                                  May 10 at 14:10














                                                                up vote
                                                                3
                                                                down vote













                                                                For Linux/Ubuntu



                                                                Create a new File from Terminal as



                                                                gedit emulator.sh (Use any Name for file here i have used "emulator")



                                                                now write following lines in this file



                                                                cd /home/userName/Android/Sdk/tools/



                                                                ./emulator @your created Android device Name



                                                                (here after @ write the name of your AVD e.g



                                                                ./emulator @Nexus_5X_API_27
                                                                )



                                                                Now save the file and run your emulator using following commands



                                                                ./emulator.sh



                                                                In case of Permission denied use following command before above command



                                                                chmod +x emulator.sh



                                                                All set Go..






                                                                share|improve this answer




















                                                                • amazing and helped save my time so much
                                                                  – Asfand Shabbir
                                                                  Mar 28 at 19:06










                                                                • I tried following the above listed commands, but still not working.
                                                                  – NarendraJi
                                                                  May 10 at 14:10












                                                                up vote
                                                                3
                                                                down vote










                                                                up vote
                                                                3
                                                                down vote









                                                                For Linux/Ubuntu



                                                                Create a new File from Terminal as



                                                                gedit emulator.sh (Use any Name for file here i have used "emulator")



                                                                now write following lines in this file



                                                                cd /home/userName/Android/Sdk/tools/



                                                                ./emulator @your created Android device Name



                                                                (here after @ write the name of your AVD e.g



                                                                ./emulator @Nexus_5X_API_27
                                                                )



                                                                Now save the file and run your emulator using following commands



                                                                ./emulator.sh



                                                                In case of Permission denied use following command before above command



                                                                chmod +x emulator.sh



                                                                All set Go..






                                                                share|improve this answer












                                                                For Linux/Ubuntu



                                                                Create a new File from Terminal as



                                                                gedit emulator.sh (Use any Name for file here i have used "emulator")



                                                                now write following lines in this file



                                                                cd /home/userName/Android/Sdk/tools/



                                                                ./emulator @your created Android device Name



                                                                (here after @ write the name of your AVD e.g



                                                                ./emulator @Nexus_5X_API_27
                                                                )



                                                                Now save the file and run your emulator using following commands



                                                                ./emulator.sh



                                                                In case of Permission denied use following command before above command



                                                                chmod +x emulator.sh



                                                                All set Go..







                                                                share|improve this answer












                                                                share|improve this answer



                                                                share|improve this answer










                                                                answered Mar 13 at 11:22









                                                                Sibtain Raza Jamali

                                                                312




                                                                312











                                                                • amazing and helped save my time so much
                                                                  – Asfand Shabbir
                                                                  Mar 28 at 19:06










                                                                • I tried following the above listed commands, but still not working.
                                                                  – NarendraJi
                                                                  May 10 at 14:10
















                                                                • amazing and helped save my time so much
                                                                  – Asfand Shabbir
                                                                  Mar 28 at 19:06










                                                                • I tried following the above listed commands, but still not working.
                                                                  – NarendraJi
                                                                  May 10 at 14:10















                                                                amazing and helped save my time so much
                                                                – Asfand Shabbir
                                                                Mar 28 at 19:06




                                                                amazing and helped save my time so much
                                                                – Asfand Shabbir
                                                                Mar 28 at 19:06












                                                                I tried following the above listed commands, but still not working.
                                                                – NarendraJi
                                                                May 10 at 14:10




                                                                I tried following the above listed commands, but still not working.
                                                                – NarendraJi
                                                                May 10 at 14:10










                                                                up vote
                                                                2
                                                                down vote













                                                                Got it working for Windows 10:



                                                                C:UsersUserNameAppDataLocalAndroidSdktools>emulator -list-avds
                                                                Nexus_5X_API_28
                                                                C:UsersUserNameAppDataLocalAndroidSdkemulator>emulator -avd Nexus_5X_API_28





                                                                share|improve this answer
























                                                                  up vote
                                                                  2
                                                                  down vote













                                                                  Got it working for Windows 10:



                                                                  C:UsersUserNameAppDataLocalAndroidSdktools>emulator -list-avds
                                                                  Nexus_5X_API_28
                                                                  C:UsersUserNameAppDataLocalAndroidSdkemulator>emulator -avd Nexus_5X_API_28





                                                                  share|improve this answer






















                                                                    up vote
                                                                    2
                                                                    down vote










                                                                    up vote
                                                                    2
                                                                    down vote









                                                                    Got it working for Windows 10:



                                                                    C:UsersUserNameAppDataLocalAndroidSdktools>emulator -list-avds
                                                                    Nexus_5X_API_28
                                                                    C:UsersUserNameAppDataLocalAndroidSdkemulator>emulator -avd Nexus_5X_API_28





                                                                    share|improve this answer












                                                                    Got it working for Windows 10:



                                                                    C:UsersUserNameAppDataLocalAndroidSdktools>emulator -list-avds
                                                                    Nexus_5X_API_28
                                                                    C:UsersUserNameAppDataLocalAndroidSdkemulator>emulator -avd Nexus_5X_API_28






                                                                    share|improve this answer












                                                                    share|improve this answer



                                                                    share|improve this answer










                                                                    answered Jul 23 at 19:23









                                                                    Rukala

                                                                    286




                                                                    286




















                                                                        up vote
                                                                        2
                                                                        down vote













                                                                        This is the commands on Mac



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


                                                                        then



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





                                                                        share|improve this answer
























                                                                          up vote
                                                                          2
                                                                          down vote













                                                                          This is the commands on Mac



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


                                                                          then



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





                                                                          share|improve this answer






















                                                                            up vote
                                                                            2
                                                                            down vote










                                                                            up vote
                                                                            2
                                                                            down vote









                                                                            This is the commands on Mac



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


                                                                            then



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





                                                                            share|improve this answer












                                                                            This is the commands on Mac



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


                                                                            then



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






                                                                            share|improve this answer












                                                                            share|improve this answer



                                                                            share|improve this answer










                                                                            answered Jul 27 at 14:49









                                                                            Andy Wilson

                                                                            316




                                                                            316




















                                                                                up vote
                                                                                1
                                                                                down vote













                                                                                if you installed Git on your system. then you can run .sh bash code. I create the bash code for search from your created ADV Devices and list them. then you can select the number of adv device for run emulator without running Android studio.



                                                                                link:
                                                                                adv-emulator.sh



                                                                                note [windows os]: please first add %appdata%..LocalAndroidSdkemulator to your system Environment path, otherwise the bash-code not work.






                                                                                share|improve this answer
























                                                                                  up vote
                                                                                  1
                                                                                  down vote













                                                                                  if you installed Git on your system. then you can run .sh bash code. I create the bash code for search from your created ADV Devices and list them. then you can select the number of adv device for run emulator without running Android studio.



                                                                                  link:
                                                                                  adv-emulator.sh



                                                                                  note [windows os]: please first add %appdata%..LocalAndroidSdkemulator to your system Environment path, otherwise the bash-code not work.






                                                                                  share|improve this answer






















                                                                                    up vote
                                                                                    1
                                                                                    down vote










                                                                                    up vote
                                                                                    1
                                                                                    down vote









                                                                                    if you installed Git on your system. then you can run .sh bash code. I create the bash code for search from your created ADV Devices and list them. then you can select the number of adv device for run emulator without running Android studio.



                                                                                    link:
                                                                                    adv-emulator.sh



                                                                                    note [windows os]: please first add %appdata%..LocalAndroidSdkemulator to your system Environment path, otherwise the bash-code not work.






                                                                                    share|improve this answer












                                                                                    if you installed Git on your system. then you can run .sh bash code. I create the bash code for search from your created ADV Devices and list them. then you can select the number of adv device for run emulator without running Android studio.



                                                                                    link:
                                                                                    adv-emulator.sh



                                                                                    note [windows os]: please first add %appdata%..LocalAndroidSdkemulator to your system Environment path, otherwise the bash-code not work.







                                                                                    share|improve this answer












                                                                                    share|improve this answer



                                                                                    share|improve this answer










                                                                                    answered Mar 6 at 20:47









                                                                                    Hamed Taheri

                                                                                    4919




                                                                                    4919




















                                                                                        up vote
                                                                                        1
                                                                                        down vote













                                                                                        On windows



                                                                                        ......Androidsdktoolsbinavdmanager list avds

                                                                                        ......Androidsdktoolsemulator.exe -avd Nexus_5X_API_27





                                                                                        share|improve this answer
















                                                                                        • 2




                                                                                          Brings up PANIC: Missing emulator engine program for 'x86' CPU. Although I can start it in Android Studio?
                                                                                          – user668338
                                                                                          Jul 11 at 17:42











                                                                                        • You can go to $ANDROID_HOME/emulator -avd DEVICE_NAME stackoverflow.com/questions/26483370/…
                                                                                          – brownmagik352
                                                                                          Sep 8 at 0:51














                                                                                        up vote
                                                                                        1
                                                                                        down vote













                                                                                        On windows



                                                                                        ......Androidsdktoolsbinavdmanager list avds

                                                                                        ......Androidsdktoolsemulator.exe -avd Nexus_5X_API_27





                                                                                        share|improve this answer
















                                                                                        • 2




                                                                                          Brings up PANIC: Missing emulator engine program for 'x86' CPU. Although I can start it in Android Studio?
                                                                                          – user668338
                                                                                          Jul 11 at 17:42











                                                                                        • You can go to $ANDROID_HOME/emulator -avd DEVICE_NAME stackoverflow.com/questions/26483370/…
                                                                                          – brownmagik352
                                                                                          Sep 8 at 0:51












                                                                                        up vote
                                                                                        1
                                                                                        down vote










                                                                                        up vote
                                                                                        1
                                                                                        down vote









                                                                                        On windows



                                                                                        ......Androidsdktoolsbinavdmanager list avds

                                                                                        ......Androidsdktoolsemulator.exe -avd Nexus_5X_API_27





                                                                                        share|improve this answer












                                                                                        On windows



                                                                                        ......Androidsdktoolsbinavdmanager list avds

                                                                                        ......Androidsdktoolsemulator.exe -avd Nexus_5X_API_27






                                                                                        share|improve this answer












                                                                                        share|improve this answer



                                                                                        share|improve this answer










                                                                                        answered Jul 11 at 5:51









                                                                                        Tarasantan

                                                                                        193




                                                                                        193







                                                                                        • 2




                                                                                          Brings up PANIC: Missing emulator engine program for 'x86' CPU. Although I can start it in Android Studio?
                                                                                          – user668338
                                                                                          Jul 11 at 17:42











                                                                                        • You can go to $ANDROID_HOME/emulator -avd DEVICE_NAME stackoverflow.com/questions/26483370/…
                                                                                          – brownmagik352
                                                                                          Sep 8 at 0:51












                                                                                        • 2




                                                                                          Brings up PANIC: Missing emulator engine program for 'x86' CPU. Although I can start it in Android Studio?
                                                                                          – user668338
                                                                                          Jul 11 at 17:42











                                                                                        • You can go to $ANDROID_HOME/emulator -avd DEVICE_NAME stackoverflow.com/questions/26483370/…
                                                                                          – brownmagik352
                                                                                          Sep 8 at 0:51







                                                                                        2




                                                                                        2




                                                                                        Brings up PANIC: Missing emulator engine program for 'x86' CPU. Although I can start it in Android Studio?
                                                                                        – user668338
                                                                                        Jul 11 at 17:42





                                                                                        Brings up PANIC: Missing emulator engine program for 'x86' CPU. Although I can start it in Android Studio?
                                                                                        – user668338
                                                                                        Jul 11 at 17:42













                                                                                        You can go to $ANDROID_HOME/emulator -avd DEVICE_NAME stackoverflow.com/questions/26483370/…
                                                                                        – brownmagik352
                                                                                        Sep 8 at 0:51




                                                                                        You can go to $ANDROID_HOME/emulator -avd DEVICE_NAME stackoverflow.com/questions/26483370/…
                                                                                        – brownmagik352
                                                                                        Sep 8 at 0:51










                                                                                        up vote
                                                                                        1
                                                                                        down vote













                                                                                        I am working with a React Native project and I also faced this problem



                                                                                        I solved it by making a .bat file in my desktop that I can open fast



                                                                                        The content of the .bat is



                                                                                        C:UsershariaAppDataLocalAndroidsdkemulatoremulator -avd Pixel_2_XL_API_27


                                                                                        Where haria is my Windows username and
                                                                                        Pixel_2_XL_API_27 is my emulator name




                                                                                        If you want to see your emulator name, open CMD (or PowerShell) and type (In Windows)




                                                                                        cd C:UsershariaAppDataLocalAndroidsdkemulator




                                                                                        Then to see the emulator(s) name




                                                                                        ./emulator -list-avds







                                                                                        share|improve this answer
























                                                                                          up vote
                                                                                          1
                                                                                          down vote













                                                                                          I am working with a React Native project and I also faced this problem



                                                                                          I solved it by making a .bat file in my desktop that I can open fast



                                                                                          The content of the .bat is



                                                                                          C:UsershariaAppDataLocalAndroidsdkemulatoremulator -avd Pixel_2_XL_API_27


                                                                                          Where haria is my Windows username and
                                                                                          Pixel_2_XL_API_27 is my emulator name




                                                                                          If you want to see your emulator name, open CMD (or PowerShell) and type (In Windows)




                                                                                          cd C:UsershariaAppDataLocalAndroidsdkemulator




                                                                                          Then to see the emulator(s) name




                                                                                          ./emulator -list-avds







                                                                                          share|improve this answer






















                                                                                            up vote
                                                                                            1
                                                                                            down vote










                                                                                            up vote
                                                                                            1
                                                                                            down vote









                                                                                            I am working with a React Native project and I also faced this problem



                                                                                            I solved it by making a .bat file in my desktop that I can open fast



                                                                                            The content of the .bat is



                                                                                            C:UsershariaAppDataLocalAndroidsdkemulatoremulator -avd Pixel_2_XL_API_27


                                                                                            Where haria is my Windows username and
                                                                                            Pixel_2_XL_API_27 is my emulator name




                                                                                            If you want to see your emulator name, open CMD (or PowerShell) and type (In Windows)




                                                                                            cd C:UsershariaAppDataLocalAndroidsdkemulator




                                                                                            Then to see the emulator(s) name




                                                                                            ./emulator -list-avds







                                                                                            share|improve this answer












                                                                                            I am working with a React Native project and I also faced this problem



                                                                                            I solved it by making a .bat file in my desktop that I can open fast



                                                                                            The content of the .bat is



                                                                                            C:UsershariaAppDataLocalAndroidsdkemulatoremulator -avd Pixel_2_XL_API_27


                                                                                            Where haria is my Windows username and
                                                                                            Pixel_2_XL_API_27 is my emulator name




                                                                                            If you want to see your emulator name, open CMD (or PowerShell) and type (In Windows)




                                                                                            cd C:UsershariaAppDataLocalAndroidsdkemulator




                                                                                            Then to see the emulator(s) name




                                                                                            ./emulator -list-avds








                                                                                            share|improve this answer












                                                                                            share|improve this answer



                                                                                            share|improve this answer










                                                                                            answered Sep 8 at 15:27









                                                                                            Hari Anugrah

                                                                                            225




                                                                                            225




















                                                                                                up vote
                                                                                                0
                                                                                                down vote













                                                                                                For Windows



                                                                                                In case anyone looking for shortcut / batch script - Gist - Download batch file.



                                                                                                @echo off
                                                                                                IF [%1]== (GOTO ExitWithPrompt)
                                                                                                set i=1
                                                                                                FOR /F "delims=" %%i IN ('emulator -list-avds') DO (
                                                                                                set /A i=i+1
                                                                                                set em=%%i
                                                                                                if %i% == %1 (
                                                                                                echo Starting %em%
                                                                                                emulator -avd %em%
                                                                                                EXIT /B 0
                                                                                                )
                                                                                                )
                                                                                                GOTO :Exit
                                                                                                :ExitWithPrompt
                                                                                                emulator -list-avds
                                                                                                echo Please enter the emulator number to start

                                                                                                :Exit
                                                                                                EXIT /B 0


                                                                                                Usage



                                                                                                D:>start-emulator
                                                                                                Nexus_5_API_26
                                                                                                Please enter the emulator number to start

                                                                                                D:>start-emulator 1
                                                                                                Starting Nexus_5_API_26
                                                                                                HAX is working and emulator runs in fast virt mode.





                                                                                                share|improve this answer






















                                                                                                • This lists me exactly 0 AVDs available. How to install/download/seetup AVD from commandline?
                                                                                                  – Tino
                                                                                                  Oct 22 at 10:05










                                                                                                • @Tino I will share seperate gist for that by tomorrow EOD.
                                                                                                  – Prachil Tambe
                                                                                                  Oct 22 at 10:07














                                                                                                up vote
                                                                                                0
                                                                                                down vote













                                                                                                For Windows



                                                                                                In case anyone looking for shortcut / batch script - Gist - Download batch file.



                                                                                                @echo off
                                                                                                IF [%1]== (GOTO ExitWithPrompt)
                                                                                                set i=1
                                                                                                FOR /F "delims=" %%i IN ('emulator -list-avds') DO (
                                                                                                set /A i=i+1
                                                                                                set em=%%i
                                                                                                if %i% == %1 (
                                                                                                echo Starting %em%
                                                                                                emulator -avd %em%
                                                                                                EXIT /B 0
                                                                                                )
                                                                                                )
                                                                                                GOTO :Exit
                                                                                                :ExitWithPrompt
                                                                                                emulator -list-avds
                                                                                                echo Please enter the emulator number to start

                                                                                                :Exit
                                                                                                EXIT /B 0


                                                                                                Usage



                                                                                                D:>start-emulator
                                                                                                Nexus_5_API_26
                                                                                                Please enter the emulator number to start

                                                                                                D:>start-emulator 1
                                                                                                Starting Nexus_5_API_26
                                                                                                HAX is working and emulator runs in fast virt mode.





                                                                                                share|improve this answer






















                                                                                                • This lists me exactly 0 AVDs available. How to install/download/seetup AVD from commandline?
                                                                                                  – Tino
                                                                                                  Oct 22 at 10:05










                                                                                                • @Tino I will share seperate gist for that by tomorrow EOD.
                                                                                                  – Prachil Tambe
                                                                                                  Oct 22 at 10:07












                                                                                                up vote
                                                                                                0
                                                                                                down vote










                                                                                                up vote
                                                                                                0
                                                                                                down vote









                                                                                                For Windows



                                                                                                In case anyone looking for shortcut / batch script - Gist - Download batch file.



                                                                                                @echo off
                                                                                                IF [%1]== (GOTO ExitWithPrompt)
                                                                                                set i=1
                                                                                                FOR /F "delims=" %%i IN ('emulator -list-avds') DO (
                                                                                                set /A i=i+1
                                                                                                set em=%%i
                                                                                                if %i% == %1 (
                                                                                                echo Starting %em%
                                                                                                emulator -avd %em%
                                                                                                EXIT /B 0
                                                                                                )
                                                                                                )
                                                                                                GOTO :Exit
                                                                                                :ExitWithPrompt
                                                                                                emulator -list-avds
                                                                                                echo Please enter the emulator number to start

                                                                                                :Exit
                                                                                                EXIT /B 0


                                                                                                Usage



                                                                                                D:>start-emulator
                                                                                                Nexus_5_API_26
                                                                                                Please enter the emulator number to start

                                                                                                D:>start-emulator 1
                                                                                                Starting Nexus_5_API_26
                                                                                                HAX is working and emulator runs in fast virt mode.





                                                                                                share|improve this answer














                                                                                                For Windows



                                                                                                In case anyone looking for shortcut / batch script - Gist - Download batch file.



                                                                                                @echo off
                                                                                                IF [%1]== (GOTO ExitWithPrompt)
                                                                                                set i=1
                                                                                                FOR /F "delims=" %%i IN ('emulator -list-avds') DO (
                                                                                                set /A i=i+1
                                                                                                set em=%%i
                                                                                                if %i% == %1 (
                                                                                                echo Starting %em%
                                                                                                emulator -avd %em%
                                                                                                EXIT /B 0
                                                                                                )
                                                                                                )
                                                                                                GOTO :Exit
                                                                                                :ExitWithPrompt
                                                                                                emulator -list-avds
                                                                                                echo Please enter the emulator number to start

                                                                                                :Exit
                                                                                                EXIT /B 0


                                                                                                Usage



                                                                                                D:>start-emulator
                                                                                                Nexus_5_API_26
                                                                                                Please enter the emulator number to start

                                                                                                D:>start-emulator 1
                                                                                                Starting Nexus_5_API_26
                                                                                                HAX is working and emulator runs in fast virt mode.






                                                                                                share|improve this answer














                                                                                                share|improve this answer



                                                                                                share|improve this answer








                                                                                                edited Sep 22 at 1:46

























                                                                                                answered Sep 22 at 1:33









                                                                                                Prachil Tambe

                                                                                                656




                                                                                                656











                                                                                                • This lists me exactly 0 AVDs available. How to install/download/seetup AVD from commandline?
                                                                                                  – Tino
                                                                                                  Oct 22 at 10:05










                                                                                                • @Tino I will share seperate gist for that by tomorrow EOD.
                                                                                                  – Prachil Tambe
                                                                                                  Oct 22 at 10:07
















                                                                                                • This lists me exactly 0 AVDs available. How to install/download/seetup AVD from commandline?
                                                                                                  – Tino
                                                                                                  Oct 22 at 10:05










                                                                                                • @Tino I will share seperate gist for that by tomorrow EOD.
                                                                                                  – Prachil Tambe
                                                                                                  Oct 22 at 10:07















                                                                                                This lists me exactly 0 AVDs available. How to install/download/seetup AVD from commandline?
                                                                                                – Tino
                                                                                                Oct 22 at 10:05




                                                                                                This lists me exactly 0 AVDs available. How to install/download/seetup AVD from commandline?
                                                                                                – Tino
                                                                                                Oct 22 at 10:05












                                                                                                @Tino I will share seperate gist for that by tomorrow EOD.
                                                                                                – Prachil Tambe
                                                                                                Oct 22 at 10:07




                                                                                                @Tino I will share seperate gist for that by tomorrow EOD.
                                                                                                – Prachil Tambe
                                                                                                Oct 22 at 10:07










                                                                                                up vote
                                                                                                0
                                                                                                down vote













                                                                                                (Only for Windows)
                                                                                                Why to torture yourself? Make a Simple BAT file ! :



                                                                                                1. Open Notepad

                                                                                                2. Create the command as shown below

                                                                                                3. Save as *.bat

                                                                                                4. (Optional) Create a shortcut to that *.bat, rename shortcut and change icon

                                                                                                Here is the command:




                                                                                                cd /d yourSdkPathemulator && emulator -avd yourAVDName




                                                                                                Example:




                                                                                                cd /d D:Android_SDKemulator && emulator -avd Nexus_5_API_28







                                                                                                share|improve this answer
























                                                                                                  up vote
                                                                                                  0
                                                                                                  down vote













                                                                                                  (Only for Windows)
                                                                                                  Why to torture yourself? Make a Simple BAT file ! :



                                                                                                  1. Open Notepad

                                                                                                  2. Create the command as shown below

                                                                                                  3. Save as *.bat

                                                                                                  4. (Optional) Create a shortcut to that *.bat, rename shortcut and change icon

                                                                                                  Here is the command:




                                                                                                  cd /d yourSdkPathemulator && emulator -avd yourAVDName




                                                                                                  Example:




                                                                                                  cd /d D:Android_SDKemulator && emulator -avd Nexus_5_API_28







                                                                                                  share|improve this answer






















                                                                                                    up vote
                                                                                                    0
                                                                                                    down vote










                                                                                                    up vote
                                                                                                    0
                                                                                                    down vote









                                                                                                    (Only for Windows)
                                                                                                    Why to torture yourself? Make a Simple BAT file ! :



                                                                                                    1. Open Notepad

                                                                                                    2. Create the command as shown below

                                                                                                    3. Save as *.bat

                                                                                                    4. (Optional) Create a shortcut to that *.bat, rename shortcut and change icon

                                                                                                    Here is the command:




                                                                                                    cd /d yourSdkPathemulator && emulator -avd yourAVDName




                                                                                                    Example:




                                                                                                    cd /d D:Android_SDKemulator && emulator -avd Nexus_5_API_28







                                                                                                    share|improve this answer












                                                                                                    (Only for Windows)
                                                                                                    Why to torture yourself? Make a Simple BAT file ! :



                                                                                                    1. Open Notepad

                                                                                                    2. Create the command as shown below

                                                                                                    3. Save as *.bat

                                                                                                    4. (Optional) Create a shortcut to that *.bat, rename shortcut and change icon

                                                                                                    Here is the command:




                                                                                                    cd /d yourSdkPathemulator && emulator -avd yourAVDName




                                                                                                    Example:




                                                                                                    cd /d D:Android_SDKemulator && emulator -avd Nexus_5_API_28








                                                                                                    share|improve this answer












                                                                                                    share|improve this answer



                                                                                                    share|improve this answer










                                                                                                    answered Oct 30 at 18:54









                                                                                                    Zakir

                                                                                                    108110




                                                                                                    108110




















                                                                                                        up vote
                                                                                                        0
                                                                                                        down vote













                                                                                                        If you are on windows, what about a shortcut ? It is very easy to place whatever you want ant the icon is descriptive and nice.



                                                                                                        • First, navigate to your android sdk, probably at C:UsersYOURUSERNAMEAppDataLocalAndroidSdktools

                                                                                                        • Then right click on emulator.exe and then click create shortcut.

                                                                                                        • Your new and shiny shortcut gets created, probably with a predefined name.

                                                                                                        • Right click on the shortcut, and on the target field (my computer is on spanish) add an extra parameter with the name of your device with an @ in front (take a look at the picture below )

                                                                                                        shortcut params



                                                                                                        now you can do whatever yhou want with that shortcut, put on the desktop, bind it to the start-menu or whatever






                                                                                                        share|improve this answer
























                                                                                                          up vote
                                                                                                          0
                                                                                                          down vote













                                                                                                          If you are on windows, what about a shortcut ? It is very easy to place whatever you want ant the icon is descriptive and nice.



                                                                                                          • First, navigate to your android sdk, probably at C:UsersYOURUSERNAMEAppDataLocalAndroidSdktools

                                                                                                          • Then right click on emulator.exe and then click create shortcut.

                                                                                                          • Your new and shiny shortcut gets created, probably with a predefined name.

                                                                                                          • Right click on the shortcut, and on the target field (my computer is on spanish) add an extra parameter with the name of your device with an @ in front (take a look at the picture below )

                                                                                                          shortcut params



                                                                                                          now you can do whatever yhou want with that shortcut, put on the desktop, bind it to the start-menu or whatever






                                                                                                          share|improve this answer






















                                                                                                            up vote
                                                                                                            0
                                                                                                            down vote










                                                                                                            up vote
                                                                                                            0
                                                                                                            down vote









                                                                                                            If you are on windows, what about a shortcut ? It is very easy to place whatever you want ant the icon is descriptive and nice.



                                                                                                            • First, navigate to your android sdk, probably at C:UsersYOURUSERNAMEAppDataLocalAndroidSdktools

                                                                                                            • Then right click on emulator.exe and then click create shortcut.

                                                                                                            • Your new and shiny shortcut gets created, probably with a predefined name.

                                                                                                            • Right click on the shortcut, and on the target field (my computer is on spanish) add an extra parameter with the name of your device with an @ in front (take a look at the picture below )

                                                                                                            shortcut params



                                                                                                            now you can do whatever yhou want with that shortcut, put on the desktop, bind it to the start-menu or whatever






                                                                                                            share|improve this answer












                                                                                                            If you are on windows, what about a shortcut ? It is very easy to place whatever you want ant the icon is descriptive and nice.



                                                                                                            • First, navigate to your android sdk, probably at C:UsersYOURUSERNAMEAppDataLocalAndroidSdktools

                                                                                                            • Then right click on emulator.exe and then click create shortcut.

                                                                                                            • Your new and shiny shortcut gets created, probably with a predefined name.

                                                                                                            • Right click on the shortcut, and on the target field (my computer is on spanish) add an extra parameter with the name of your device with an @ in front (take a look at the picture below )

                                                                                                            shortcut params



                                                                                                            now you can do whatever yhou want with that shortcut, put on the desktop, bind it to the start-menu or whatever







                                                                                                            share|improve this answer












                                                                                                            share|improve this answer



                                                                                                            share|improve this answer










                                                                                                            answered yesterday









                                                                                                            Danielo515

                                                                                                            1,07311123




                                                                                                            1,07311123



























                                                                                                                 

                                                                                                                draft saved


                                                                                                                draft discarded















































                                                                                                                 


                                                                                                                draft saved


                                                                                                                draft discarded














                                                                                                                StackExchange.ready(
                                                                                                                function ()
                                                                                                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f42718973%2frun-avd-emulator-without-android-studio%23new-answer', 'question_page');

                                                                                                                );

                                                                                                                Post as a guest














































































                                                                                                                這個網誌中的熱門文章

                                                                                                                How to read a connectionString WITH PROVIDER in .NET Core?

                                                                                                                Node.js Script on GitHub Pages or Amazon S3

                                                                                                                Museum of Modern and Contemporary Art of Trento and Rovereto