Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio : emulator is already running

I am trying to run emulator on my android studio 8.14. When I click run it says it is already running. Any help would be appreciated.

AVD api21 is already running.

If that is not the case, delete the files at /home/sayem/.android/avd/api21.avd/*.lock and try again

image containing the error written out above

like image 872
Sayem Avatar asked Nov 19 '14 10:11

Sayem


People also ask

How do I stop an emulator from running?

To stop a running emulator, click Menu and select Stop. To clear the data for an emulator, select Wipe Data. Or click Menu and select Wipe Data.

How do I completely remove Android emulator?

You can uninstall from Android Studio by going to Tools in the menu and selecting SDK Manager, and then the SDK Tools tab and unchecking the box for Android Emulator and then clicking Apply.

Why is my android studio Emulator not working?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

Is Android studio an emulator?

The Android Emulator runs directly inside Android Studio by default. This allows you to conserve screen real estate, navigate quickly between the emulator and the editor window using hotkeys, and organize your IDE and emulator workflow in a single application window.


2 Answers

You don't have to completely delete the emulator when this happens. The files to delete should have a ".lock" extension:

Screenshot of files for an AVD. The first three files appear as file folders in Windows 7 and have '.lock' at the end of their file names.

You don't need to touch the configuration files.

You can easily find the files location by clicking on the arrow under the Actions tab (in the ADB manager), and selecting "Show on Disk".

like image 61
BSMP Avatar answered Sep 17 '22 05:09

BSMP


This worked for me:

Go to AVD Manager and click on the down-arrow on the right and click Stop. This stops the emulator and you can re-run it.

like image 34
BigDreamz Avatar answered Sep 18 '22 05:09

BigDreamz