Java 错误:您的 CPU 不支持所需的功能(vt-x 或 svm)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/37466267/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 19:22:27  来源:igfitidea点击:

Error: Your cpu does not support required features(vt-x or svm)

javaandroidvirtualizationandroid-studio-2.0mobile-development

提问by E.S

I keep getting the error noted above when I try to run a virtual device.

当我尝试运行虚拟设备时,我不断收到上述错误。

My CPU does support virtualisation and it is enabled.

我的 CPU 确实支持虚拟化并且已启用。

I have ran a virtual device on eclipse before but, for some reason, Android Studio is giving me a hard time.

我之前在 eclipse 上运行过一个虚拟设备,但出于某种原因,Android Studio 给我带来了困难。

My CPU is an AMD FX 6350 six core processor 3.90 Ghz running Windows 10.

我的 CPU 是运行 Windows 10 的 AMD FX 6350 六核处理器 3.90 Ghz。

回答by Melanie B.

I had the same problem. Android Studio emulator won't run on Windows with an AMD processor. The error message is kind of misleading, as it suggests the problem is with the CPU. But it is within the troubleshoot message: "Windows/OSX computer with an Intel processor".

我有同样的问题。Android Studio 模拟器不能在带有 AMD 处理器的 Windows 上运行。错误消息有点误导,因为它表明问题出在 CPU 上。但它在故障排除消息中:“带有 Intel 处理器的 Windows/OSX 计算机”。

Solutions could be installing Linux and running Android Studio on that (which might come with its own issues), using a physical device for testing or using the slow ARM images.

解决方案可能是安装 Linux 并在其上运行 Android Studio(这可能有其自身的问题)、使用物理设备进行测试或使用慢速 ARM 映像。

回答by clearpath

Now, in 2019, Android Studio supports running virtual devices with AMD processor on Windows.

现在,在 2019 年,Android Studio 支持在 Windows 上运行具有 AMD 处理器的虚拟设备。

More info at https://developer.android.com/studio/run/emulator-acceleration

更多信息请访问https://developer.android.com/studio/run/emulator-acceleration

Prerequisites:

先决条件:

  • AMD processor with virtualization (most do support it)
  • enabled virtualization in UEFI/BIOS
  • Windows 10 with Windows Hypervisor Platform (available from April 2018 Update, does nothave to be Pro, can be Home)
  • Windows Hypervisor Platform must be turned on
  • updated Android Studio
  • Android Emulator must be installed in SDK Tools
  • 具有虚拟化功能的 AMD 处理器(大多数都支持)
  • 在 UEFI/BIOS 中启用虚拟化
  • 的Windows 10与Windows管理程序平台(可从2018年4月更新,也没有必须要专业,可居)
  • 必须打开 Windows 管理程序平台
  • 更新的 Android Studio
  • 必须在 SDK Tools 中安装 Android Emulator

If any of these is missing the error message shown is misleading and recommends using an Intel processor or Linux, which is not very helpful.

如果缺少其中任何一个,显示的错误消息具有误导性,建议使用 Intel 处理器或 Linux,这不是很有帮助。