英文:
Emulator doesn't start because of missing Vulkan, but Vulkan is installed
问题
2023-03-08 10:35:22,742 [1953359] WARN - Emulator: Pixel 2 API 30 - 请更新支持以下功能的模拟器:Vulkan
2023-03-08 10:35:22,768 [1953385] WARN - Emulator: Pixel 2 API 30 - 无法处理读取 /home/bf/.android/avd/Pixel_2_API_30.avd/quickbootChoice.ini 的 .ini 文件。
2023-03-08 10:35:22,863 [1953480] WARN - Emulator: Pixel 2 API 30 - 无法添加库 /home/bf/Android/Sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so:失败
看起来 Vulkan 驱动程序已安装,并且所有 Android 工具已升级(我已完全重新安装模拟器):
包 mesa-vulkan-drivers-22.3.6-1.fc37.x86_64 已安装。
解决了依赖关系。
没有要执行的操作。
完成!
我正在使用 Fedora 37。
我读到从 API30 开始使用 Vulkan,但运行较低的 API 也会出现相同错误。我还尝试更改模拟性能(在线上找到了这个提示),但我无法更改:
这让我有点沮丧,一个像这样简单的事情不再起作用,所以任何帮助都将不胜感激,甚至是解决方法。我只是想在我的 Android 应用上运行一些小测试。
注意:模拟器确实启动了,只是窗口中没有显示任何内容:
[bf@localhost platform-tools]$ ps ax | grep qemu
25331 pts/3 Sl+ 0:00 /home/bf/Android/Sdk/emulator/qemu/linux-x86_64/qemu-system-x86_64 -netdelay none -netspeed full -avd Pixel_2_API_30 -qt-hide-window -grpc-use-token -idle-grpc-timeout 300
英文:
I am trying to start my emulator, but I get this message:
2023-03-08 10:35:22,742 [1953359] WARN - Emulator: Pixel 2 API 30 - Please update the emulator to one that supports the feature(s): Vulkan
2023-03-08 10:35:22,768 [1953385] WARN - Emulator: Pixel 2 API 30 - Failed to process .ini file /home/bf/.android/avd/Pixel_2_API_30.avd/quickbootChoice.ini for reading.
2023-03-08 10:35:22,863 [1953480] WARN - Emulator: Pixel 2 API 30 - cannot add library /home/bf/Android/Sdk/emulator/qemu/linux-x86_64/lib64/vulkan/libvulkan.so: failed
Vulkan drivers seem to be installed, and all Android tools are upgraded (the emulator I have reinstalled completely):
Package mesa-vulkan-drivers-22.3.6-1.fc37.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
I am using Fedora 37.
I read that from API30 it uses Vulkan, but running a lower API gives the same error. I tried to change the Emulated Performance as well (found that tip online), but I cannot change that:
It is getting a little frustrating that a simple thing like this doesn't work (anymore), so any help is appreciated, even workarounds. I just want to run a few small tests on my Android app.
Note: the emulator does start, it just doesn't show anything in the window:
[bf@localhost platform-tools]$ ps ax | grep qemu
25331 pts/3 Sl+ 0:00 /home/bf/Android/Sdk/emulator/qemu/linux-x86_64/qemu-system-x86_64 -netdelay none -netspeed full -avd Pixel_2_API_30 -qt-hide-window -grpc-use-token -idle-grpc-timeout 300
答案1
得分: 1
我找到答案,我也运行了一个 Windows 客户机的 VirtualBox,这与 Android 模拟器冲突。
没有解决办法来修复这个问题。
英文:
I found the answer, I also had VirtualBox running a Windows guest, which conflicts with the Android emulator.
No solution on how to fix this though.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论