Android AVD - AVD <emulator_name> 的模拟器进程已终止

Cal*_*nes 10 android android-virtual-device android-emulator android-studio

我在 StackOverflow 上进行了搜索,发现了许多类似的问题和许多不同的答案,但没有一个对我有用。

所以,最后几天我一直很好地使用 Android Studio 的模拟器,直到我尝试使用Google Play API添加新的虚拟设备,当我尝试运行它时,出现了以下消息:

AVD <emulator_name> 的模拟器进程已终止。

我尝试了很多不同的事情,还删除了我拥有的所有模拟器,但现在我创建的模拟器都不起作用

这是我在 Android Studio 日志中得到的日志:

[1647414]   INFO - manager.EmulatorProcessHandler - Emulator: C:\Users\2DWeb\AppData\Local\Android\Sdk\emulator\emulator.exe -netdelay none -netspeed full -no-snapstorage -avd cel_30_debug1 
[1649364]   INFO - manager.EmulatorProcessHandler - Emulator: WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator. 
[1649364]   INFO - manager.EmulatorProcessHandler - Emulator: Warning: Quick Boot / Snapshots not supported on this machine. A CPU with EPT + UG features is currently needed. We will address this in a future release. 
[1649380]   INFO - manager.EmulatorProcessHandler - Emulator: WARNING | Not all modern X86 virtualization features supported, which introduces problems with slowdown when running Android on multicore vCPUs. Setting AVD to run with 1 vCPU core only. 
[1650143]   INFO - manager.EmulatorProcessHandler - Emulator: C:\Users\2DWeb\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe:/qemu.conf:1: no group defined 
[1651630]   INFO - manager.EmulatorProcessHandler - Emulator: INFO    | configAndStartRenderer: setting vsync to 60 hz 
[1651630]   INFO - manager.EmulatorProcessHandler - Emulator: INFO    | added library vulkan-1.dll 
[1651665]   INFO - manager.EmulatorProcessHandler - Emulator: INFO    | Android emulator version 31.1.4.0 (build_id 7920983) (CL:N/A) 
[1651665]   INFO - manager.EmulatorProcessHandler - Emulator: Process finished with exit code 0 
Run Code Online (Sandbox Code Playgroud)

我什至卸载了Android Studio并删除了所有相关目录并重新安装了它,但不起作用。

一些重要的事情:

  • 尝试使用或不使用 Google Play API 或 Google API
  • 尝试了不同的 SDK API(8.1 [ API 27 ]、10 [ API 29 ]、11 [ API 30 ]...)
  • 我的高清可用空间:大约 40GB
  • 模拟器内部存储设置为16GB
  • 我尝试了 x86 和 x86_64 架构(两天前都可以工作)
  • 尝试过快速启动和冷启动
  • 尝试添加新的模拟器并且不更改规格上的任何内容(使用默认值)
  • SDK Tools 上的 Android 模拟器已更新至最新版本 (31.1.4)
  • 安装最新的 HAXM 版本 (7.7.0)
  • 我有一个 Intel 处理器(据我所知,没有对其进行任何更改)和 12GB RAM

以上均无法使模拟器正常工作。

小智 13

转到您的 Android Studio,选择 \xe2\x80\x9cTools\xe2\x80\x9d ->\xe2\x80\x9d SDK Manager\xe2\x80\x9d -> \xe2\x80\x9cSDK Tools\xe2\x80\x9d选项卡 -> 并更新到最新的 Android 模拟器版本。然后再次重新运行您的模拟器。解决了!希望能帮助到你。

\n


Quv*_*Quv 5

截至 2020 年 5 月,对于仍在苦苦挣扎的 Macbook M1 (Pro/Max) 用户......

首先,不要从 Android Studio 启动模拟器。除了无用的“AVD 已被杀死或终止”消息之外,它不提供任何信息。

相反,输入这个。

~/Library/Android/sdk/tools/emulator 
Run Code Online (Sandbox Code Playgroud)

它返回更详细的消息,如下所示。

emulator: ERROR: process is translated under Rosetta. Attempting to replace emulator installation.
emulator: Replacing via command: /Users/<USER>/Library/Android/sdk/emulator/darwin-aarch64-replace.sh (downloading ~120 MB)...
sh: /Users/<USER>/Library/Android/sdk/emulator/darwin-aarch64-replace.sh: No such file or directory
emulator: Replacement done. Please relaunch the emulator. You will also need to be using an Apple Silicon-compatible system image. Check the release updates blog (https://androidstudio.googleblog.com/) for more details
Run Code Online (Sandbox Code Playgroud)

所以就我而言,darwin-aarch64-replace.sh丢失了!

从这里下载文件

问题解决了。


Cal*_*nes 3

我成功了...

显然,更新到最新版本的 Android 模拟器是问题所在。显然,与 vulkan.dll 和其他模拟进程的许多冲突在这个新版本中停止工作(至少对我来说在我的计算机上)。

我根据这个答案下载了旧版本的android模拟器,然后它再次开始工作......