简体   繁体   English

运行英特尔®HAXM安装程序需要在Windows 10上使用Android Studio安装向导

[英]Running Intel® HAXM installer takes forever with Android Studio Setup Wizard on Windows 10

I have a newly installed Android Studio, upon downloading its components I've stuck on the setup wizard Running Intel® HAXM installer : 我有一个新安装的Android Studio,在下载其组件后,我坚持使用设置向导Running Intel® HAXM installer

运行英特尔®HAXM安装程序

What should I do? 我该怎么办? Will all my downloaded components lost if I end the task of my Android Studio with my Task Manager because just canceling Android Studio Setup Wizard might have no action AGAIN! 如果我使用任务管理器结束Android Studio的任务,我所下载的所有组件都会丢失,因为取消Android Studio安装向导可能没有再次操作! (I've done ending its task upon no success of cancelling it just want to customize the setup.) (我没有成功取消它只是想自定义设置,我已经完成了它的任务。)

EDIT: As pointed out in https://stackoverflow.com/a/54053514/2279059 , this driver is only needed for the Android virtual device. 编辑:正如https://stackoverflow.com/a/54053514/2279059所指出的,只有Android虚拟设备需要此驱动程序。 If you don't need it (it is useful for debugging, etc.), just see that other answer about how to disable the virtual device in the installer. 如果您不需要它(它对调试很有用等),只需看看有关如何在安装程序中禁用虚拟设备的其他答案。

This workaround did it for me on a relatively fresh Windows 10 PC: 这个解决方法在相对较新的Windows 10 PC上为我做到了:

  1. Kill the installer process 终止安装程序
  2. Download the Intel HAXM driver from https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-intel-haxm下载Intel HAXM驱动程序
  3. From that ZIP file, run haxm_android.exe 从该ZIP文件中,运行haxm_android.exe
  4. If it complains about Hyper-V, disable Hyper-V: dism.exe /Online /Disable-Feature:Microsoft-Hyper-V-All (or see https://www.poweronplatforms.com/enable-disable-hyper-v-windows-10-8/ ), then run it again. 如果它抱怨Hyper-V,请禁用Hyper-V: dism.exe /Online /Disable-Feature:Microsoft-Hyper-V-All (或参见https://www.poweronplatforms.com/enable-disable-hyper-v -windows-10-8 / ),然后再次运行它。
  5. Run the Android Studio installer again, selecting "Uninstall Previous Version". 再次运行Android Studio安装程序,选择“卸载以前的版本”。

More solutions to more potential problems may be found here: I can't install intel HAXM 可以在这里找到更多解决更多潜在问题的解决方案: 我无法安装intel HAXM

There is also a long checklist in another StackOverflow question for installing the Intel HAXM driver somewhere, but I could not find it again. 另一个StackOverflow问题还有一个很长的清单,用于在某处安装Intel HAXM驱动程序,但我再也找不到了。 Feel free to edit if you can find it. 如果你能找到它,请随时编辑。 There are also lots of (semi-)duplicates of this question begging for cleanup and maybe assembling one answer with all the steps and things to check, not just what I had to do on my machine. 还有很多(半)重复这个问题请求清理,并且可能汇集一个答案,包括所有要检查的步骤和事项,而不仅仅是必须在我的机器上做什么。 If you are still stuck after reading this, keep looking around. 如果您在阅读本文后仍然感到困惑,请继续四处寻找。

Intel HAXM is required to run the app on the emulator (Android Virtual Device). 需要Intel HAXM才能在模拟器(Android虚拟设备)上运行该应用程序。 Unfortunately for me my computer does not support Intel Virtualization Technology so what I did is uncheck Android Virtual Device during installation and test run all my app in my phone instead. 不幸的是,我的计算机不支持英特尔虚拟化技术,因此我所做的是在安装过程中取消选中Android虚拟设备,然后在我的手机中测试运行我的所有应用程序。

在此输入图像描述

The same thing was happening with me. 同样的事情发生在我身上。 I just then closed the android studio and restarted the PC. 我刚关闭android工作室并重新启动了PC。

After this, I opened Android Studio and everything worked fine. 在此之后,我打开了Android Studio,一切正常。

HYPER-V服务应该停止。

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

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