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
1. Complete Video tutorials (For all windows versions)
2. Text tutorials
Open the command prompt and change the directory where your sdk is placed D:\Softwares\Android\sdk\tools\bin>
now add your avdmanager in this,now your full code is D:\Softwares\Android\sdk\tools\bin>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:\Softwares\Android\sdk\tools>emulator -avd Tablet_API_25
EDIT : For Android Studio 3.2 or later, the path changes to D:\Softwares\Android\sdk\emulator\emulator -avd Tablet_API_25
i.e. %ANDROID_HOME%\tools\emulator -avd [AVD NAME]
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
I already have the Studio installed. But without starting (not installing) the Android Studio you can directly start the emulator with
C:\Users\YOURUSERNAME\AppData\Local\Android\Sdk\tools\emulator.exe -netdelay none -netspeed full -avd YOUR_AVD_NAME
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
cd C:\Users\mxsof\AppData\Local\Android\Sdk\emulator
emulator -avd pixel_2_api_29
That's all. Happy coding!
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