What is the command to list the available avdnames

后端 未结 9 1448
迷失自我
迷失自我 2021-01-30 02:49

I know I can start the emulator avd by typing

emulator.exe @avdname

But is there a command to list the available avdnames? Where are this avd c

相关标签:
9条回答
  • 2021-01-30 03:37

    get into Android/sdk/tools and run following command

    ./emulator -list-avds
    

    which will return something like

    Nexus_5X_API_P
    Nexus_6_API_25
    
    0 讨论(0)
  • 2021-01-30 03:37

    I have a simple method (Only for windows):

    1. First of all set permanent path to adb in your system (Pretty similar like java). Find yours, For most of cases - C:\Program Files\android\android-sdk\platform-tools and copy it. Now go through your system properties and find Advance System Setting. Now find Environment Variable, in system variable tab find path. If there is no path then create a new variable and name it Path and paste the copied value in next field. But if there is already a Path, then open it and put a ; semi-colon at the last of value box and paste the copied value.

    2. Now you are almost done.! Check it by typing adb in cmd

    3. and now type adb devices, thats what you wanted. Cheers.!

    0 讨论(0)
  • 2021-01-30 03:38

    Using sdk/tools/emulator

    This will list all available avds

    emulator -list-avds
    
    0 讨论(0)
提交回复
热议问题