简体   繁体   English

Android Studio 上的 Android 虚拟设备错误

[英]Android Virtual Device ERROR on Android Studio

When I try the open Virtual Device, I see the same error.当我尝试打开虚拟设备时,我看到了同样的错误。 What can I do?我能做些什么?

That error :那个错误:

Emulator: warning: host doesn't support requested feature: CPUID.80000001H:ECX.abm [bit 5]

I can't fix my problem :/ I asked yesterday but anyone answer it :/我无法解决我的问题:/ 我昨天问过,但有人回答:/

Note : Virtualization Technology is enabled and KVM is OK.注意:虚拟化技术已启用,KVM 正常。

This error is referring to CPU feature called LZCNT.此错误与称为 LZCNT 的 CPU 功能有关。 It was introduced in Intel processors since Haswell (2013) and in AMD since 2007. So if your CPU is older or to any other reason does not support LZCNT - you will get this warning.自 Haswell (2013) 和 AMD 自 2007 年以来,它已在 Intel 处理器中引入。因此,如果您的 CPU 较旧或出于任何其他原因不支持 LZCNT - 您将收到此警告。 You can check if your CPU support LZCNT instruction by executing the following command (Linux):您可以通过执行以下命令(Linux)检查您的 CPU 是否支持 LZCNT 指令:

cat /proc/cpuinfo | grep abm

LZCNT can not be checked directly but it is included in the ABM flag (Advanced Bit Manipulations) which indicates both POPCNT and LZCNT are present. LZCNT 不能直接检查,但它包含在 ABM 标志(高级位操作)中,表明 POPCNT 和 LZCNT 都存在。 So if command output is blank - LZCNT is not supported.因此,如果命令输出为空白 - 不支持 LZCNT。

idk if this is still an acutal problem. idk,如果这仍然是一个实际问题。

I've tried many different things to solve that problem on my machine, but nothing really worked out for me.我已经尝试了很多不同的方法来解决我机器上的这个问题,但对我来说没有任何效果。 I'm still not able to configure my emulator stettings but i'll find a way.我仍然无法配置我的模拟器设置,但我会找到一种方法。

Back to the problem AVD not working:回到问题 AVD 不工作:

I'm running Ubuntu 22.04 on a Aspire-M7720 (Core I7-900) 14Gb RAM and a GeForce GTX 960我在 Aspire-M7720(Core I7-900)14Gb RAM 和 GeForce GTX 960 上运行 Ubuntu 22.04

The solution was quite simple: I've just installed the proprietary drivers for my GPU and now it's working.解决方案非常简单:我刚刚为我的 GPU 安装了专有驱动程序,现在它可以工作了。 IDK why it's working now, but all Images are working perfectly fine now. IDK 为什么它现在可以正常工作,但是所有图像现在都可以正常工作。 Hope it helps you希望对你有帮助

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM