使用AMD处理器启动AVD时出错

本文翻译自:Error in launching AVD with AMD processor

I have Windows 8.1 pro with an AMD processor. 我有带AMD处理器的Windows 8.1 pro。 I installed the Android SDK and Eclipse. 我安装了Android SDK和Eclipse。 It works but the problem is that when I Create AVD and launch it shows this error: 它可以工作,但问题是当我创建并启动AVD时显示此错误:

emulator: ERROR: x86 emulation currently requires hardware acceleration! 仿真器:错误:x86仿真当前需要硬件加速!
Please ensure Intel HAXM is properly installed and usable. 请确保正确安装了英特尔HAXM并可以使用它。
CPU acceleration status: HAX kernel module is not installed! CPU加速状态:未安装HAX内核模块!

I have already installed Intel Hardware_Accelerated_Execution_Manager and I have enabled Virtual modulation from the boot menu, but it's still not working. 我已经安装了Intel Hardware_Accelerated_Execution_Manager,并且已经从启动菜单中启用了虚拟调制,但是仍然无法正常工作。


#1楼

参考:https://stackoom.com/question/1maJ3/使用AMD处理器启动AVD时出错


#2楼

You need to read (and post) the output of 您需要阅读(并发布)的输出

sc query intelhaxm

as stated on http://developer.android.com/tools/devices/emulator.html#accel-vm http://developer.android.com/tools/devices/emulator.html#accel-vm所述

You open a command prompt window by right click on the start menu, choose execute and write 'cmd'. 通过右键单击开始菜单打开命令提示符窗口,选择执行并写入“ cmd”。

See also Android Emulator Doesn't Use HAXM . 另请参见Android模拟器不使用HAXM

If you cannot get the emulator to work you might want to try out an easier alternative: Genymotion - http://genymotion.com/ 如果无法使仿真器正常工作,则可能需要尝试更简单的替代方法:Genymotion- http ://genymotion.com/


#3楼

Make sure you have installed HAXM installer on your SDK Manager. 确保HAXM installer在SDK Manager上安装了HAXM installer

Android SDK管理器

After you download it and make sure you run the setup located in: {SDK_FOLDER}\\extras\\intel\\Hardware_Accelerated_Execution_Manager\\intelhaxm.exe 下载它并确保运行位于以下位置的安装程序: {SDK_FOLDER} \\ extras \\ intel \\ Hardware_Accelerated_Execution_Manager \\ intelhaxm.exe

Note: in Android Studio, the command "intelhaxm.exe" has been changed to "intelhaxm-android.exe" 注意:在Android Studio中,命令“ intelhaxm.exe”已更改为“ intelhaxm-android.exe”

If you get the error "VT not supported" during the installation disable Hyper-V on windows features. 如果在安装过程中出现错误“不支持VT” ,请禁用Windows功能上的Hyper-V。 You can execute this command dism.exe /Online /Disable-Feature:Microsoft-Hyper-V . 您可以执行此命令dism.exe /Online /Disable-Feature:Microsoft-Hyper-V You will also need "Virtualization Technology" to be enabled on your BIOS 您还需要在BIOS上启用“虚拟化技术”


#4楼

So I am having this issue and it seems that unless you are on Linux you will not be able to use HAXM. 因此,我遇到了这个问题,似乎除非您使用Linux,否则将无法使用HAXM。 [EDIT: this is if you have an AMD chip (non intel) of course as that is the issue] [编辑:这当然是您是否拥有AMD芯片(非英特尔)的原因]

As stated on the Android Site; 如Android网站所述;

Many modern CPUs provide extensions for running virtual machines (VMs) more efficiently. 许多现代CPU提供了扩展,可以更有效地运行虚拟机(VM)。 Taking advantage of these extensions with the Android emulator requires some additional configuration of your development system, but can significantly improve the execution speed. 在Android模拟器中利用这些扩展功能需要对开发系统进行一些其他配置,但可以显着提高执行速度。 Before attempting to use this type of acceleration, you should first determine if your development system's CPU supports one of the following virtualization extensions technologies: 在尝试使用这种类型的加速之前,您应该首先确定开发系统的CPU是否支持以下虚拟化扩展技术之一:

 Intel Virtualization Technology (VT, VT-x, vmx) extensions 

> AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux) > AMD虚拟化(AMD-V,SVM)扩展(仅Linux支持)

As others have mentioned Genymotion may be a solution. 正如其他人提到的那样,Genymotion可能是一个解决方案。


#5楼

If you're running Mac, as @pedro mentions ensure you have the HAXM installer dowloaded via the Android SDK Manager. 如果您运行的是Mac,则如@pedro所述,请确保您已通过Android SDK Manager下载了HAXM安装程序。

Next install it! 接下来安装! In finder navigate to /YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/ 在finder中导航到/YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/

Run and install the .mpgk in the following .dmg 在以下.dmg中运行并安装.mpgk

  • Yosemite: IntelHAXM_1.1.0_for_10.10.dmg 优胜美地: IntelHAXM_1.1.0_for_10.10.dmg
  • Pre-yosemite: IntelHAXM_1.1.0_below_10.10.dmg IntelHAXM_1.1.0_below_10.10.dmgIntelHAXM_1.1.0_below_10.10.dmg
  • El Capitan: IntelHAXM_6.0.1.dmg - please install the IntelHAXM_6.0.1.mpgk file within - it will ask you if you want to reinstall it. El Capitan:IntelHAXM_6.0.1.dmg-请在其中安装IntelHAXM_6.0.1.mpgk文件-它会询问您是否要重新安装它。 Just say yes. 答应我。

Example: 例:

 $cd /YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/ $open IntelHAXM_1.1.0_below_10.10.dmg 

#6楼

For those who are using Android Studio based on Jetbrains: 对于使用基于Jetbrains的Android Studio的用户:

  1. Goto Tools > Android > SDK Manager 转到工具> Android> SDK管理器

  2. Under Extras --> select the checkbox Intel x86 Emulator Accelorator 在其他->下,选中复选框英特尔x86仿真器加速器

For those who are unable to use Nexus AVD can also try using Generic AVD. 对于无法使用Nexus AVD的用户,也可以尝试使用通用AVD。

  1. Goto Tools > Android > AVD Manager 转到工具> Android> AVD管理器

Then create a new Genreic AVD with something like QVGA and use for your app. 然后使用QVGA之类的东西创建一个新的Genreic AVD,并将其用于您的应用程序。 This AVD does not use hardware acceleration. 此AVD不使用硬件加速。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章