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
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
I have a simple method (Only for windows):
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.
Now you are almost done.! Check it by typing adb
in cmd
and now type adb devices
, thats what you wanted. Cheers.!
Using sdk/tools/emulator
This will list all available avds
emulator -list-avds