【问题标题】:Ubuntu android studio AVD error: Emulator: emulator: ERROR: VkCommonOperations.cpp:540: Failed to create Vulkan instanceUbuntu android studio AVD 错误:Emulator: emulator: ERROR: VkCommonOperations.cpp:540: Failed to create Vulkan instance
【发布时间】:2021-01-24 09:02:39
【问题描述】:

在 android studio 中,我在 AVD 中创建了一个设备,当我点击播放按钮时,我得到了这个:

这里是日志:

12:22 PM    Emulator: emulator: ERROR: VkCommonOperations.cpp:540: Failed to create Vulkan instance.

12:22 PM    Emulator: Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)

这是一个react native项目,当我连接物理设备时成功运行,所以我认为问题出在android studio本身而不是项目。

我尝试过的:

  1. $ sudo apt install mesa-vulkan-drivers 根据this answer
  2. $ sudo ubuntu-drivers autoinstall 根据this answer
  3. 重新安装 android studio 并在 AVD 中创建新设备

我不知道如何解决这个问题,因此非常感谢任何帮助! :)

【问题讨论】:

  • 找到任何解决方案
  • 目前还没有解决方案,请为问题投票,以便得到更多关注

标签: android android-studio avd-manager


【解决方案1】:

花了一整天后,我找到了解决方案。只需卸载您的模拟器的现有系统映像,然后下载新的 Google Play 系统映像模拟器。它对我有用!

【讨论】:

  • 能否详细说明“下载新版Google play系统镜像模拟器”?您的意思是向 AVD 添加设备?请添加更多详细信息:)
  • 在创建新的 AVD 时,它将显示下载选项以选择 R 或 Q 或 Pie.... 在该窗口中,只需单击它,然后完成该过程。就是这样
猜你喜欢
  • 1970-01-01
  • 2019-08-08
  • 1970-01-01
  • 2016-07-12
  • 2021-04-18
  • 2021-09-25
  • 1970-01-01
  • 2021-07-21
  • 2015-08-05
相关资源
最近更新 更多