简体   繁体   English

如何解决Android Studio中的HAX Carnel模块问题?

[英]How do I fix HAX carnel module issue in Android studio?

I have successfully installed Android Studio from their official homepage. 我已经从他们的官方主页成功安装了Android Studio。 But the problem is I can't strat my emulator. 但是问题是我无法将模拟器分层。 Once I run the program, it shows the following error in my command window. 一旦运行该程序,它将在命令窗口中显示以下错误。

"C:\Users\Jabir Al Fatah\AppData\Local\Android\sdk1\tools\emulator.exe" -avd Nexus_5_API_21 -netspeed full -netdelay none
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!

Now, I have uninstalled the Studio at least 10 times and installed them again. 现在,我至少已卸载Studio 10次,然后再次安装。 I have searched online about all the possible solution. 我已经在网上搜索了所有可能的解决方案。 I have HAXM installer installed properly in my sdk. 我的SDK中已正确安装了HAXM安装程序。 I have enabled the virtualization in BIOS. 我已经在BIOS中启用了虚拟化。 But none of those really help. 但是这些都没有帮助。 I wanted to exucute the intelhaxm.exe file. 我想删除intelhaxm.exe文件。 But the problem is I don't find any sdk folder in my drive. 但是问题是我在驱动器中找不到任何sdk文件夹。 I can see the specified derictory for sdk while installing the studio, but in reality that folder is never created and never exist in my drive. 安装Studio时,我可以看到sdk的指定目录,但是实际上,文件夹从未创建过,也不存在于驱动器中。

Please help me to find a solution. 请帮助我找到解决方案。

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 have fun!! 如果您在上述过程中进行了很少的更改,则对于Win 7而言是相同的,对于eclipse而言也是相同的!

I had the same problem. 我有同样的问题。 You might wanna read this post: Error in launching AVD with AMD processor 您可能想读这篇文章: 使用AMD处理器启动AVD时出错

In particular, after installing HAXM through the SDK manager, which in itself didn't fix the problem, try to run the intelhaxm-android.exe. 特别是,通过SDK管理器安装HAXM(本身无法解决问题)后,请尝试运行intelhaxm-android.exe。 This showed that I had some hardware virtualization problems (like the error mentioned in the other post). 这表明我遇到了一些硬件虚拟化问题(例如另一篇文章中提到的错误)。

I'm switching to the Genymotion thingy. 我要改用Genymotion了。

Cheers, B. 干杯,B。

Eventually, I found a different solution, as the Genymotion wasn't the right thing for me. 最终,我找到了一个不同的解决方案,因为Genymotion对我来说不合适。

In the AVD manager, I changed the processor type of the AVD to ARM and this doesn't need the HAXM thing at all. 在AVD管理器中,我将AVD的处理器类型更改为ARM,这根本不需要HAXM。 This surely doesn't make stuff very fast, but it got me a working emulator. 当然,这不会使内容变得很快,但是却让我可以正常工作。 Once it's running, it's not that bad. 一旦运行,那还不错。

Hope this helps. 希望这可以帮助。

Cheers! 干杯!

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

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