Android Studio错误|模拟器:模拟器:错误:VkCommonOperations.cpp:496:无法创建Vulkan实例 [英] Android Studio Error | Emulator: emulator: ERROR: VkCommonOperations.cpp:496: Failed to create Vulkan instance

查看:188
本文介绍了Android Studio错误|模拟器:模拟器:错误:VkCommonOperations.cpp:496:无法创建Vulkan实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如标题所示,我的Linux Mint 19.3上的Android Studio出现问题.我已经尝试通过官方下载页面,软件管理器安装Android Studio,现在已经通过snap安装了最新版本.当我尝试在android studio 3.6.1中启动应用程序时,创建vulkan实例失败是很多人的第一个错误.仿真器屏幕为黑色,什么也没有发生.

As the title shows I have an issue with Android Studio on my Linux Mint 19.3. I've tried to install Android Studio via the official download page, the Software Manager and now latest via snap. The failed to create vulkan instance is the first error of many when I try to launch an app in android studio 3.6.1. The emulator screen is black and nothing happens.

我在 Dell XPS 13 9343 Kernel:5.3.0-40-generic x86_64 <上运行 Linux Mint 19.3 Tricia base:Ubuntu 18.04 bionic /code>.我已经安装了所有驱动程序.

I run Linux Mint 19.3 Tricia base: Ubuntu 18.04 bionic on a Dell XPS 13 9343 and the Kernel: 5.3.0-40-generic x86_64. I have all drivers installed.

这是我尝试启动我的应用程序时的事件日志:

This is the event log when I try to launch my app:

17.3.2020
10:32   Executing tasks: [:app:assembleDebug] in project /home/samuel/Downloads/Exemple2

10:32   Emulator: emulator: ERROR: VkCommonOperations.cpp:496: Failed to create Vulkan instance.

10:32   Emulator: emulator: WARNING: EmulatorService.cpp:448: Cannot find certfile: /home/samuel/.android/emulator-grpc.cer security will be disabled.

10:32   Emulator: E0317 10:32:43.165019034   12845 socket_utils_common_posix.cc:201] check for SO_REUSEPORT: {"created":"@1584433963.164985521","description":"SO_REUSEPORT unavailable on compiling system","file":"/mnt/tmpfs/src/android/emu-master-dev/external/grpc/src/core/lib/iomgr/socket_utils_common_posix.cc","file_line":169}

10:32   Emulator: Started GRPC server at 127.0.0.1:8554

10:32   Gradle build finished in 1 s 288 ms

推荐答案

在了解了GPU的问题后,我找到了一种启动仿真器的方法...

I found a way to lauch emulator after understanding it was a GPU issue...

sudo ubuntu-drivers autoinstall

升级了我的Nvidia GPU驱动程序,并将问题更改为另一个问题:

Made upgrade my Nvidia GPU drivers and changed problem to another :

Blockquote运行Android应用程序时出错-无法初始化OpenglES仿真,请使用'-gpu off'禁用它

Blockquote Error while Running Android Application - Could not initialize OpenglES emulation, use '-gpu off' to disable it

因此,根据此问题此答案我将模拟设备更改为一个设备,该设备允许我更改图形的"Software-GLE 2.0",而不是选择自动"或硬件GLE 2.0"(在软件中模拟图形)(并非所有人都可以更改它)我使用了Galaxy Nexus API 30-R,并且仿真仍然有效,即使我仍然遇到此SO_REUSEPORT错误!希望它可以帮助某人...

So according to this issue and this answer I changed the emulated device for one that allowed me to change 'Software-GLE 2.0' for Graphics,not select 'Automatic' or 'Hardware-GLE 2.0' (emulate graphics in software) (not all of them allow to change it) I used Galaxy Nexus API 30 - R and emulation worked, even I still have this SO_REUSEPORT error ! Hope it can help someone ...

这篇关于Android Studio错误|模拟器:模拟器:错误:VkCommonOperations.cpp:496:无法创建Vulkan实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆