【问题标题】:Android emulator suddenly stopped to workAndroid模拟器突然停止工作
【发布时间】:2020-09-23 11:47:01
【问题描述】:

我正在使用 Xamarin 在 Visual Studio 上开发一个应用程序。昨天模拟器工作正常,但无缘无故突然停止工作。 这是来自 vs 控制台的错误消息:

Starting emulator my_device ...
C:\Program Files (x86)\Android\android-sdk\emulator\emulator.EXE -partition-size 512 -no-boot-anim -avd my_device -prop monodroid.avdname=my_device
Failed to open /qemu.conf, err: 2
HAX is working and emulator runs in fast virt mode.
C:\Program Files (x86)\Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-i386.exe: error while loading state for instance 0x0 of device 'goldfish_pipe'
deleteSnapshot: for default_boot
emulator: INFO: QtLogger.cpp:68: Critical: UpdateLayeredWindowIndirect failed for ptDst=(1113, 122), size=(300x21), dirty=(300x21 0, 0) (Sisteme bağlı bir aygıt çalışmıyor.) ((null):0, (null))

【问题讨论】:

  • 更改 AVD 配置 --> 模拟性能 --> 图形:软件。
  • 它不起作用:(
  • 请打开您的Android SDK Manager,查看是否有更新,有更新,请全部更新到最新(尤其是Android Emulator组件),然后新建模拟器进行测试。

标签: android xamarin android-emulator


【解决方案1】:

转到 AVD 管理器

尝试擦除数据或立即冷启动选项。

【讨论】:

  • 我试过这个,但没有运气。我也试过卸载并重新安装模拟器。更新平台工具、系统映像。他们都没有工作。
【解决方案2】:

大多数时候,这个错误是在系统尝试绘制应用程序边框/边缘等时引起的,当它失败时,它会抛出UpdateLayeredWindowIndirect Failed的以下错误

因此,它与图形高度相关,因此,请尝试更改您的 Emulated Graphics in

AVD configuration --> Emulated Performance --> Graphics: Software

请注意,如果您使用的是 Android SDK 的 Google PlayStore API,那么您可能无法更改此设置,因此,如果您无法将 Graphics to Software 选项更改,请创建没有 PlayStore 的虚拟设备

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-06-01
    • 2013-12-18
    • 1970-01-01
    • 2017-08-22
    • 2021-02-01
    • 2016-12-29
    • 2018-05-09
    相关资源
    最近更新 更多