简体   繁体   English

Android虚拟设备和英特尔HAXM

[英]Android Virtual Device & Intel HAXM

I've just set up a new PC with Android Studio, and can't launch any Virtual Devices. 我刚刚使用Android Studio设置了新的PC,并且无法启动任何虚拟设备。 When I start a device I get the message- 当我启动设备时,我收到以下消息:

Starting emulator for AVD 'Nexus_5_API_21_x86'
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!

When I run the HAXM installer, it says 当我运行HAXM安装程序时,它说

This computer meets the requirements for haxm but intel virtualization is not turned on

But in BIOS its definately ticked as being ON. 但是在BIOS中,它肯定是打开的。

Any ideas why I can't get it working ? 有什么想法为什么我不能使它工作? Thanks. 谢谢。

so some antivirus prevent HAXM running, and make sure you don't have Windows Hypervisor running. 因此某些防病毒软件会阻止HAXM运行,并确保您没有运行Windows Hypervisor。 (Under programs list, windows, under H). (在程序列表下的窗口中,在H下)。

It could be you need to set your NX (XD) bit to on. 可能是您需要将NX(XD)位置打开。 As admin run from command line: bcdedit /set nx AlwaysOn Otherwise what is your CPU? 以管理员身份从命令行运行:bcdedit / set nx AlwaysOn否则,您的CPU是什么?

Windows 8. Android Studio.
Make sure if virtualization is enable : go through those steps provided below.
  • Goto setting -> change pc settings-> general->then see on right side by scrolling the frame down-> you will see under advance start up restart now button press it->then choose an option window will open->choose troubleshoot->under troubleshoot choose Advance option->then under Advance options choose UEFI Firmware option->then press restart->press f10 for BIOS->see the menubar where you will find system configuration menu inside it you will see the virtualization Technology "enable" it ->now go for exit saving changes in exit on menu bar.. 转到设置->更改电脑设置->常规->然后向下滚动框架在右侧看到->您将在预先看到的菜单下启动重新启动现在按下按钮->然后选择一个选项窗口将打开->选择故障排除- >在疑难解答中选择高级选项->然后在高级选项下选择UEFI固件选项->然后按重新启动->按f10键进入BIOS->请参阅菜单栏,您将在其中找到系统配置菜单,您将看到虚拟化技术“启用”它->现在去退出保存菜单栏上的退出更改。

    C:\\Users\\username\\AppData\\Local\\Android\\sdk\\extras\\intel\\Hardware_Accelerated_Execution_Manager\\intelhaxm-android.exe C:\\ Users \\用户名\\ AppData \\本地\\ Android的\\ SDK \\演员\\英特尔\\ Hardware_Accelerated_Execution_Manager \\ intelhaxm,android.exe

    (in username : please enter valid user name) (在用户名中:请输入有效的用户名)

    install it and restart your Android Studio. 安装它并重新启动您的Android Studio。

    if you make few changes on above process it is same for win 7 and also same for eclipse 如果您在上述过程中进行了很少的更改,则对于Win 7和Eclipse都是相同的

    hope it helps have fun!! 希望它能玩得开心!

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

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