简体   繁体   English

Android开发:AVD模拟器中的错误

[英]Android Development: Error in AVD Emulator

"Cannot launch AVD in emulator. Output: emulator: ERROR: x86 emulation currently requires hardware acceleration! Please ensure Intel HAXM is properly installed and usable. CPU acceleration status: HAX kernel module is not installed!" “无法在模拟器中启动AVD。输出:模拟器:错误:x86仿真当前需要硬件加速!请确保正确安装了Intel HAXM并可用。CPU加速状态:未安装HAX内核模块!”

I can't use a virtual device because of this. 因此,我无法使用虚拟设备。 Yes, I installed the Accelerator from the Manager and even went into my app data and ran the intelhax.exe program, but there I found ANOTHER error telling me that my computer couldn't handle something about Intel. 是的,我从Manager安装了Accelerator,甚至进入了我的应用程序数据并运行了intelhax.exe程序,但是我发现另一个错误告诉我我的计算机无法处理有关Intel的问题。

I need help with this, and I can't start making apps until I get passed this block. 我需要与此相关的帮助,直到获得通过此权限,我才能开始制作应用。

您需要打开Android SDK Manager并从Extras下载HAXM软件包

In order to use HAXM (including the x86 targets) you will need to have the additional functionality available from a product that only runs on Intel processors. 为了使用HAXM(包括x86目标),您将需要仅在Intel处理器上运行的产品具有可用的附加功能。 You must have an Intel processor in your computer, then will need to install additional tools (including a driver) on your machine. 您的计算机中必须装有Intel处理器,然后才需要在计算机上安装其他工具(包括驱动程序)。

Your first problem was not having the additional drivers installed, your second problem, is that you can't install them because you don't have a compatible Intel processor. 您的第一个问题是没有安装其他驱动程序,第二个问题是您没有兼容的英特尔处理器,因此无法安装它们。

You don't need to use HAXM to run the emulator (although it IS much faster). 您不需要使用HAXM来运行仿真器(尽管它要快得多)。 When creating a new AVD, target the "arm" system images, instead of the "x86" ones. 创建新的AVD时,请以“ arm”系统映像为目标,而不是“ x86”系统映像。

Another alternative is to download and use the Genymotion product which is a 3rd party emulator, and works well. 另一种选择是下载并使用Genymotion产品,该产品是第三方仿真器,效果很好。

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

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