The below error appears when the previous process of the emulator is not closed properly in the system:
No emulators are currently running. To launch an emulator, use the Device Manager or run your app while targeting a virtual device.
To solve the problem, one has to kill the below process manually from the Windows Task Manager:
qemu-system-x86_64.exe
Once the process is killed then restart the emulator in Android Studio. It will work.
Pls when you say kill the process what do you mean
By “Kill the process”, I imply to terminate the process by going to the task manager from your operating system (Windows OS). Screenshot for the same is provided in the above page with its link as follow:
https://i0.wp.com/programmerworld.co/wp-content/uploads/2022/05/image-49.png?w=887&ssl=1