Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vulkan 1.1 APIs missing from device - Android Studio Emulator

On Manjaro Linux.

Running Android Studio 3.6.3. Everything works great, but when I try to launch any emulator I am getting this error:

Emulator: createOrGetGlobalVkEmulation: Warning: Vulkan 1.1 APIs missing from device

I'm not having any driver issues outside of trying to use the Android Studio Emulator.

Studio SDK's installed:

Android SDK's installed

Vulkan driver's installed:

I have Radeon's Vulkan mesa driver installed in manjaro. I also have virtualization enabled for processor in BIOS.

Manjaro Information:

System:    Host: command Kernel: 5.4.40-1-MANJARO x86_64 bits: 64 compiler: gcc v: 9.3.0 
CPU:       Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP arch: Zen+ rev: 2 L2 cache: 4096 KiB 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Ellesmere [Radeon RX 470/480/570/570X/580/580X/590] 
           vendor: Micro-Star MSI driver: amdgpu v: kernel bus ID: 0a:00.0 
           Display: x11 server: X.org 1.20.8 driver: amdgpu resolution: <xdpyinfo missing> 
           OpenGL: renderer: Radeon RX 580 Series (POLARIS10 DRM 3.35.0 5.4.40-1-MANJARO LLVM 10.0.0) v: 4.6 Mesa 20.0.6 
           direct render: Yes
like image 392
Zelf Avatar asked May 22 '20 23:05

Zelf


People also ask

How do I enable Vulkan on Android?

On the Main Toolbar, click on the Settings button and go to the Preview Rendering Level option. Select the Android Vulkan option to enable the Vulkan preview in the UE4 Viewport.

Is Vulkan available for Android?

Android supports Vulkan, a low-overhead, cross-platform API for high-performance 3D graphics. Like OpenGL ES (GLES), Vulkan provides tools for creating high-quality, real-time graphics in apps. Advantages of using Vulkan include reductions in CPU overhead and support for the SPIR-V Binary Intermediate language.

How do I enable Vulkan on my Samsung?

Connect the test device to Android Studio. To run the project, do the following: Use menu Run > Run vulkan_sample, or click on the run button on the toolbar, and wait for the sample to get installed and started on your connected device. On your connected Android device, authorize the needed access requests.


1 Answers

You can work around it as indicated here https://stackoverflow.com/a/59715169/1796802 :

Create the file ~/.android/advancedFeatures.ini (for Windows users path should be C:\Users\Dane\.android\advancedFeatures.ini) with the following content:

# Here's how to disable Vulkan apps to talk to the emulator.

# Add the following lines to ~/.android/advancedFeatures.ini (create this file if it doesn't exist already):

Vulkan = off
GLDirectMem = on
like image 81
GreatDane Avatar answered Oct 17 '22 11:10

GreatDane