Android Studio Flutter - 警告:另一个模拟器仍在运行 - Windows 10

17

我在关闭模拟器后重新启动它时遇到了问题。重新启动Android Studio-没有帮助。重新启动电脑有用。 我也无法通过任务管理器找到并[停止此进程]。因此我无法重启。 顺便说一句,错误信息中有一个错别字。 求助。谁面对过这样的问题,该如何解决?

emulator: WARNING: Another emualtor is still running, wait for a sec... emulator: WARNING: 
Another emualtor is still running, wait for a sec... emulator: WARNING: Another emualtor is 
still running, wait for a sec... emulator: ERROR: Another emulator instance is running. 
Please close it or run all emulators with -read-only flag. emulator: Android emulator version
30.6.5.0 (build_id 7324830) (CL:N/A)

另一个模拟器仍在运行

[√] Flutter (Channel stable, 2.2.2, on Microsoft Windows [Version 10.0.19042.1052], locale ru-UA)
    • Flutter version 2.2.2 at C:\src\flutter
    • Framework revision d79295af24 (4 days ago), 2021-06-11 08:56:01 -0700
    • Engine revision 91c9fc8fe0
    • Dart version 2.13.3
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\ArtRyzen\AppData\Local\Android\sdk
    • Platform android-30, build-tools 30.0.3
    • Java binary at: C:\Android\Android Studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.
[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe
[√] Android Studio
    • Android Studio at C:\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • android-studio-dir = C:\Android\Android Studio
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
[√] Connected device (3 available)
    • sdk gphone x86 (mobile) • emulator-5554 • android-x86    • Android 11 (API 30) (emulator)
    • Chrome (web)            • chrome        • web-javascript • Google Chrome 91.0.4472.101
    • Edge (web)              • edge          • web-javascript • Microsoft Edge 91.0.864.48

通过重新安装模拟器解决了该问题。


你好,你是否正在尝试同时运行多个模拟器? - InziKhan
我建议您前往设备管理器,清除数据,然后再尝试。如果可以正常工作,那就太好了;如果仍然出现错误,则删除模拟器并添加一个新的。 - sungkd123
我同时只运行了一个模拟器。设备的擦除也没有帮助解决问题。总的来说,问题是通过最显而易见的方式解决的 :) 我删除了旧的模拟器,重新启动了计算机,安装了一个新的,看起来工作正常。 - Artem
3个回答

59
在Windows中,运行Android模拟器的软件称为“qemu-system-x86_64.exe”。
尝试关闭这个软件。
您可以使用Windows任务管理器(Ctrl +Shift+Esc)或通过命令提示符内置的taskkill实用程序:
1.打开命令提示符(在Windows搜索中键入CMD) 2.输入:taskkill /F /IM "qemu-system-x86_64.exe" /T
Taskkill命令的解释:
/F    Specifies that processes be forcefully ended. This parameter is ignored for remote processes; all remote processes are forcefully ended.

/T    Ends the specified process and any child processes started by it.

/IM   Specifies the image name of the process to be terminated.

非常感谢。首先尝试您的解决方案更为正确,但是问题已经得到解决。现在我将等待模拟器中的下一个错误。由于这些频繁的不断更新,它们经常出现 :) - Artem
@Artem 哈!问题可能是其他原因引起的。如果再次发生,请在此答案的评论中更新,以确认此解决方案是否有效。 - MendelG
谢谢,我也这么认为。这是我的第一篇帖子,所以我会关注它的 :) - Artem
Windows 任务管理器,终止 qemu-system-x86_64.exe。 - galian
Visual Studio 22Windows 11 中,qemu-system-x86_64.exe 进程被嵌套在 VS22 任务组中。 - carloswm85

0
在我的情况下(在Windows上),我需要从任务管理器中结束“Android模拟器 - ...”进程。 enter image description here

0

适用于MacOS和Linux:

rm ~/.android/avd/Pixel_4_XL_API_33.avd/*.lock

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接