Here you will get all possible reasons and solution for intel haxm error in android studio.
在这里,您将获得android studio中Intel haxm错误的所有可能原因和解决方案。
It is the most common problem faced by android developers. We can’t run Android Virtual Device (AVD) without intel haxm. As I am also an android developer so I face this problem each time I install a new copy of android studio in my laptop. I decided to share the solution for this problem so that it can help other developers.
这是android开发人员面临的最常见问题。 没有intel haxm,我们无法运行Android虚拟设备(AVD)。 由于我也是android开发人员,因此每次在笔记本电脑中安装新版本的android studio时都会遇到此问题。 我决定共享此问题的解决方案,以便它可以帮助其他开发人员。
Also Read: Installing Android Studio and Environment Setup
另请阅读: 安装Android Studio和环境安装程序
如何解决Android Studio中的Intel HAXM错误 (How to Solve Intel HAXM Error in Android Studio)
Below are some possible reasons and solution for intel haxm error. Try all of them one by one, may be any of them will work for you.
以下是英特尔haxm错误的一些可能原因和解决方案。 尝试所有这些,可能其中任何一个都会为您工作。
英特尔HAXM未正确安装 (Intel HAXM Not Installed Properly)
First of all check intel haxm is installed on your system or not. For this open android sdk manager and check it is installed or not.
首先检查系统是否已安装intel haxm。 为此,请打开android sdk管理器,并检查是否已安装。
In case it is installed then maybe there was some error while its installation that’s why it is not working properly.
如果安装了它,那么在安装过程中可能会出现一些错误,这就是为什么它无法正常工作。
Just uninstall intel haxm from control panel and download it separately from below link and then install. Make sure to restart your system.
只需从控制面板卸载intel haxm,然后从下面的链接单独下载并安装即可。 确保重新启动系统。
Download: https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
下载: https : //software.intel.com/zh-cn/android/articles/intel-hardware-accelerated-execution-manager
If you are getting error like this “Failed to configure driver: unknown error. Failed to open driver” while installing haxm then you can try this solution.
如果遇到这样的错误“ 无法配置驱动程序:未知错误。 安装haxm时无法打开“驱动程序 ”,则可以尝试此解决方案。
未启用虚拟化 (Virtualization is Not Enabled)
In some cases intel haxm not work when virtualization technology is not enabled. You can just enable it by going to BIOS settings.
在某些情况下,如果未启用虚拟化技术,则无法使用intel haxm。 您可以通过进入BIOS设置来启用它。
不支持虚拟化 (Virtualization is Not Supported)
It may be possible that your pc or laptop doesn’t support virtualization technology. In this case you can try following two solutions.
您的PC或笔记本电脑可能不支持虚拟化技术。 在这种情况下,您可以尝试以下两种解决方案。
You can use third party android emulators like Genymotion, Bluestacks, Nox Player, etc to run and test your app.
您可以使用Genymotion, Bluestacks ,Nox Player等第三方android仿真器来运行和测试您的应用。
You can also use your real android device by connecting it to your system using USB cable. But make sure the USB Debugging option is enabled in your mobile device.
您还可以通过使用USB电缆将其连接到系统来使用真正的android设备。 但是,请确保在您的移动设备中启用了USB调试选项。
使用ARM映像 (Use ARM Image)
You can use ARM image instead of Intel image to make your AVD. Make sure following package is installed. You can install it by going to SDK manager.
您可以使用ARM映像代替Intel映像来制作AVD。 确保已安装以下软件包。 您可以通过转到SDK Manager进行安装。
Note: AVD made with ARM image works 10 times slower than made with Intel image. Use this option only when above solutions doesn’t work. That’s why I have given this solution at last. If you are using ARM image AVD then make sure your system have at least 8 GB ram and good processor as it will run really slow.
注意:使用ARM映像制作的AVD的速度比使用Intel映像制作的AVD慢10倍。 仅当以上解决方案不起作用时才使用此选项。 这就是为什么我最终给出了此解决方案。 如果您使用的是ARM映像AVD,请确保您的系统至少具有8 GB内存和良好的处理器,因为它将运行得非常慢。
I am sure at least one solution will work for you. Let me know which solution worked for you. If still you are facing any problem then comment below, I will try to solve it.
我确信至少有一种解决方案对您有用。 让我知道哪种解决方案适合您。 如果您仍然遇到任何问题,请在下面评论,我将尝试解决它。
Happy Coding!! 🙂 🙂
快乐编码! 🙂
翻译自: https://www.thecrazyprogrammer.com/2016/08/solve-intel-haxm-error-android-studio.html