[英]Android Studio on a hardware that does not support virtualization technology
I use Android Studio on Ubuntu Linux on a machine that does not support virtualization technology.我在不支持虚拟化技术的机器上使用 Ubuntu Linux 上的 Android Studio。 Android Studio demands KVM to be installed to run emulators, but I cannot do so due to the previously mentioned hardware limitation.
Android Studio 需要安装 KVM 才能运行模拟器,但由于前面提到的硬件限制,我无法这样做。
Are there any options for me to overcome this issue (using the same hardware)?我有什么办法可以解决这个问题(使用相同的硬件)?
You'll have to run the ARM system images, which unfortunately will be super-slow, but it will work.您必须运行 ARM 系统映像,不幸的是,这会非常慢,但它会起作用。 As of now, you can't run x86 system images on an x86 platform at all without KVM.
到目前为止,如果没有 KVM,您根本无法在 x86 平台上运行 x86 系统映像。 This will be true of anyone running an AMD processor;
任何运行 AMD 处理器的人都是如此; HAXM is Intel-specific.
HAXM 是特定于英特尔的。
You can also try the Genymotion emulator, which works on many platforms that can't run HAXM.您还可以尝试 Genymotion 模拟器,它可以在许多无法运行 HAXM 的平台上运行。
KVM should not be necessary for running an ARM emulator, only for x86 (see the documentation for VM acceleration ). KVM 应该不是运行 ARM 模拟器所必需的,仅适用于 x86(请参阅VM 加速文档)。
Have you tried creating an AVD using the ARM EABI instead of the Intel one?您是否尝试过使用 ARM EABI 而不是 Intel 来创建 AVD?
Your computer's processor must support one of the following virtualization extension technologies:
您计算机的处理器必须支持以下虚拟化扩展技术之一:
- Intel Virtualization Technology Extensions ( VT, VT-x, vmx )
英特尔虚拟化技术扩展( VT、VT-x、vmx )
- AMD Virtualization Extensions ( AMD-V, SVM )
AMD 虚拟化扩展( AMD-V、SVM )
Most modern processors support these virtualization extensions.
大多数现代处理器都支持这些虚拟化扩展。 If you are not sure if your processor supports these extensions, check the specifications on the manufacturer's site.
如果您不确定您的处理器是否支持这些扩展,请查看制造商网站上的规格。 If it doesn't support any, you won't be able to use VM acceleration.
如果它不支持任何,您将无法使用 VM 加速。
The ideal would be to use Android Studio in an ARM processor so that the emulator runs natively.理想的情况是在ARM 处理器中使用 Android Studio,以便模拟器在本地运行。
GL GL
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.