Android Studio:仿真器已经在运行

时间:2021-10-20 16:00:16

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.

我想在我的android studio 8.14上运行模拟器。当我点击运行,它说它已经在运行。如有任何帮助,我们将不胜感激。

Android Studio:仿真器已经在运行

12 个解决方案

#1


16  

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

当发生这种情况时,您不必完全删除模拟器。要删除的文件应该有一个"。锁”扩展:

Android Studio:仿真器已经在运行

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".

通过单击Actions选项卡(在ADB manager中)下的箭头,并选择“显示在磁盘上”,您可以轻松找到文件的位置。

#2


5  

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.

转到AVD Manager并单击右边的向下箭头并单击Stop。这将停止模拟器,您可以重新运行它。

#3


2  

Follow the instructions on the error and go to your C:\Users\directory\.android\avd/Nexus_5_API_24.avd/*.lock and delete all files with the .lock extension and it should work.

按照说明上的错误和去你C:\Users\directory\.android\ avd / Nexus_5_API_24.avd / *。用.lock扩展名锁定和删除所有文件,它应该可以工作。

#4


2  

There are so many answer but i just extending to give answer of this question. What happen is when i follow Android Studio instruction and try to delete that folder Or file but i am not able to delete it, So what am i do is that i open the AVD Manager and click on down arrow which is on right side as you can see in below screen short and click on stop after click on start and its working fine. There is no need to restart or recreate the AVD.

有这么多的答案,但我只是延伸来回答这个问题。会发生什么当我跟随Android工作室指令并尝试删除该文件夹或文件但是我不能删除它,所以我要做的是,我打开AVD管理器,单击向下箭头,在右边可以看到下面的屏幕短和点击停止后点击开始和它的工作好。不需要重新启动或重新创建AVD。

Android Studio:仿真器已经在运行

#5


1  

Thanks everyone.

谢谢每一个人。

I removed files of given location. but when I refresh the AVD manager, Existing emulator are all gone.

我删除了给定位置的文件。但是当我刷新AVD管理器时,现有的仿真器都消失了。

I recreated new emulator. Now it works fine.

我重新创建新的模拟器。现在工作正常。

#6


1  

Just follow the tips from Android Studio ... Delete the file corresponding to your avd and recreate it.

只要遵循Android Studio的提示……删除与avd对应的文件并重新创建它。

This happens when the virtual device is shut down in an unexpected state.

这发生在虚拟设备处于意外状态时。

#7


0  

Run this command and try again:

运行此命令并再次尝试:

adb kill-server 

#8


0  

If "adb kill-server" dont work try killing the adb from System monitor app of ubuntu:

如果“adb kill-server”不起作用,请尝试从ubuntu的系统监控app中杀掉adb:

System monitor->processes

All processes will be listed here end adb from here, must be in the top of the list.

所有进程都将在这里列出,从这里结束adb,必须在列表的顶部。

#9


0  

In my case the emulator looked fine but it was hung.

在我的例子中,模拟器看起来不错,但它被挂了起来。

Just killing the emulator and trying again did the trick.

只要杀死模拟器,再试一次就可以了。

#10


0  

  1. Open Settings
  2. 打开设置
  3. Goto developer options
  4. 转到开发人员选项
  5. Click revoke USB debugging authorizations
  6. 单击revoke USB调试授权

#11


0  

When you go to the specified locaction and try to delete those files sometimes you might get an error stating that the file or folder is already open or is used by another application

当您转到指定的locaction并试图删除这些文件时,有时您可能会得到一个错误,说明文件或文件夹已经打开或其他应用程序正在使用

So the simple Solution is just to go to

所以简单的解就是

Tools > Android > AVD Manager and Stop the AVD that you are trying to run

Then When you try to run the AVD again you might have the problem resolved

当你试图再次运行AVD时,问题就解决了。

#12


0  

In your Android Studio go to Tools->Android->AVD Manager. It will list your virtual devices. Click the Action column corresponding to your virtual device. It will list many actions. Click on Stop. This will shutdown your android studio. Now start android studio. Your virtual device should work fine.

在你的Android Studio中,你可以使用>Android->AVD管理器。它会列出你的虚拟设备。单击与虚拟设备对应的操作列。它将列出许多动作。点击停止。这将关闭您的android studio。现在开始android工作室。您的虚拟设备应该可以正常工作。

#1


16  

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

当发生这种情况时,您不必完全删除模拟器。要删除的文件应该有一个"。锁”扩展:

Android Studio:仿真器已经在运行

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".

通过单击Actions选项卡(在ADB manager中)下的箭头,并选择“显示在磁盘上”,您可以轻松找到文件的位置。

#2


5  

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.

转到AVD Manager并单击右边的向下箭头并单击Stop。这将停止模拟器,您可以重新运行它。

#3


2  

Follow the instructions on the error and go to your C:\Users\directory\.android\avd/Nexus_5_API_24.avd/*.lock and delete all files with the .lock extension and it should work.

按照说明上的错误和去你C:\Users\directory\.android\ avd / Nexus_5_API_24.avd / *。用.lock扩展名锁定和删除所有文件,它应该可以工作。

#4


2  

There are so many answer but i just extending to give answer of this question. What happen is when i follow Android Studio instruction and try to delete that folder Or file but i am not able to delete it, So what am i do is that i open the AVD Manager and click on down arrow which is on right side as you can see in below screen short and click on stop after click on start and its working fine. There is no need to restart or recreate the AVD.

有这么多的答案,但我只是延伸来回答这个问题。会发生什么当我跟随Android工作室指令并尝试删除该文件夹或文件但是我不能删除它,所以我要做的是,我打开AVD管理器,单击向下箭头,在右边可以看到下面的屏幕短和点击停止后点击开始和它的工作好。不需要重新启动或重新创建AVD。

Android Studio:仿真器已经在运行

#5


1  

Thanks everyone.

谢谢每一个人。

I removed files of given location. but when I refresh the AVD manager, Existing emulator are all gone.

我删除了给定位置的文件。但是当我刷新AVD管理器时,现有的仿真器都消失了。

I recreated new emulator. Now it works fine.

我重新创建新的模拟器。现在工作正常。

#6


1  

Just follow the tips from Android Studio ... Delete the file corresponding to your avd and recreate it.

只要遵循Android Studio的提示……删除与avd对应的文件并重新创建它。

This happens when the virtual device is shut down in an unexpected state.

这发生在虚拟设备处于意外状态时。

#7


0  

Run this command and try again:

运行此命令并再次尝试:

adb kill-server 

#8


0  

If "adb kill-server" dont work try killing the adb from System monitor app of ubuntu:

如果“adb kill-server”不起作用,请尝试从ubuntu的系统监控app中杀掉adb:

System monitor->processes

All processes will be listed here end adb from here, must be in the top of the list.

所有进程都将在这里列出,从这里结束adb,必须在列表的顶部。

#9


0  

In my case the emulator looked fine but it was hung.

在我的例子中,模拟器看起来不错,但它被挂了起来。

Just killing the emulator and trying again did the trick.

只要杀死模拟器,再试一次就可以了。

#10


0  

  1. Open Settings
  2. 打开设置
  3. Goto developer options
  4. 转到开发人员选项
  5. Click revoke USB debugging authorizations
  6. 单击revoke USB调试授权

#11


0  

When you go to the specified locaction and try to delete those files sometimes you might get an error stating that the file or folder is already open or is used by another application

当您转到指定的locaction并试图删除这些文件时,有时您可能会得到一个错误,说明文件或文件夹已经打开或其他应用程序正在使用

So the simple Solution is just to go to

所以简单的解就是

Tools > Android > AVD Manager and Stop the AVD that you are trying to run

Then When you try to run the AVD again you might have the problem resolved

当你试图再次运行AVD时,问题就解决了。

#12


0  

In your Android Studio go to Tools->Android->AVD Manager. It will list your virtual devices. Click the Action column corresponding to your virtual device. It will list many actions. Click on Stop. This will shutdown your android studio. Now start android studio. Your virtual device should work fine.

在你的Android Studio中,你可以使用>Android->AVD管理器。它会列出你的虚拟设备。单击与虚拟设备对应的操作列。它将列出许多动作。点击停止。这将关闭您的android studio。现在开始android工作室。您的虚拟设备应该可以正常工作。