【问题标题】:Android Studio AVD Emulator is not workingAndroid Studio AVD 模拟器不工作
【发布时间】:2018-10-01 08:18:16
【问题描述】:

以下是我在 android studio 中运行 android 模拟器时遇到的错误。

1:44 PM Emulator: init: Could not find wglGetExtensionsString!

1:44 PM Emulator: getGLES2ExtensionString: Could not find GLES 2.x config!

1:44 PM Emulator: Failed to obtain GLES 2.x extensions string!

1:44 PM Emulator: Could not initialize emulated framebuffer

1:44 PM Emulator: Warning: requested RAM 1536M too high for your system. 
Reducing to maximum supported size 512M

1:44 PM Emulator: qemu-system-x86_64.exe: Could not load library 
WinHvPlatform.dll.

1:44 PM Emulator: failed to initialize WHPX: Function not implemented

提前谢谢你。

【问题讨论】:

  • @umang 嘿,让我知道你的工作室版本和谷歌的另一件事,然后再发布到这里。谢谢
  • 我用的是最新版的android studio 3.2
  • @umang,首先删除该虚拟设备,转到 SDK Manager 并在一个 API 下安装所有可用映像,例如 api 5.1,然后创建一个 512m 和 api 5.1 的新虚拟设备

标签: android android-studio


【解决方案1】:

嗯,这和图形有关。

要在 Windows 上使用 Windows Hypervisor Platform (WHPX),您需要一个 AMD CPU。

【讨论】:

  • 我正在使用具有 4 GB 内存的核心 i5 处理器。
【解决方案2】:

qemu-system-x86_64.exe:无法加载库 WinHvPlatform.dll。

似乎无法加载WinHvPlatform.dll 库。在这种情况下,重新安装或重新创建 ADV 可能会有所帮助。

请求的 RAM 1536M 对您的系统来说太高了减少到最大 支持大小 512M

尝试在 AVD 中将最大 ram 设置为 512mb

【讨论】:

  • 更改 ram 值对我来说是禁用的,请参阅 stackoverflow.com/q/55713335/7678788
【解决方案3】:

--> 进入工具菜单。

--> 转到 avd managare。

--> 编辑您创建的虚拟设备(例如:Nexus_5X_API_27)。

--> 点击高级设置按钮。

--> 在 Emulated Performance 中将 Graphics 更改为 Software GLES 2.0

--> 在内存中将 RAM 字段更改为 512。

--> 结束。

认为它会起作用。 一切顺利。

【讨论】:

  • 好吧,我已经尝试过这些设置,并且在最新版本的 android studio 中,图形设置默认是禁用的。我已经重新安装了很多次仍然遇到这个问题,一次又一次,我使用的是 32 位操作系统。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2019-09-06
  • 1970-01-01
  • 2021-04-04
  • 2015-12-12
  • 2014-10-15
  • 2020-03-11
相关资源
最近更新 更多