简体   繁体   English

无法运行英特尔 HAXM 安装程序:无法启动进程,工作目录不存在

[英]Unable to run Intel HAXM installer: Cannot start process, the working directory does not exist

How to resolve this error which I am getting while installing HAXM installer.如何解决我在安装 HAXM 安装程序时遇到的这个错误。

Unable to run Intel HAXM installer: Cannot start process, the working directory 'C:\Users\surabhi\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelarated_Execution_Manager does not exist.无法运行英特尔 HAXM 安装程序:无法启动进程,工作目录 'C:\Users\surabhi\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelarated_Execution_Manager 不存在。

I also tried to download HAXM installer directly from Intel's website but couldn't succeed and I have also tried enabling and disabling Hyper-V.我还尝试直接从英特尔网站下载 HAXM 安装程序,但未能成功,我还尝试启用和禁用 Hyper-V。

It's because the downloaded installer might be missing.这是因为下载的安装程序可能会丢失。 So download it again.于是重新下载。

Instead of trying to install inside AVD Manager install from SDK Manager.而不是尝试从 SDK 管理器安装内部 AVD 管理器。

Android Studio -> Tools -> SDK Manager -> SDK Tools -> Check Intel x86 Emulator Accelerator(HAXM Installer) and Click Apply, it will start download and install. Android Studio -> Tools -> SDK Manager -> SDK Tools -> Check Intel x86 Emulator Accelerator(HAXM Installer) and Click Apply, it will start download and install.

My tiny contribution: I had the same problem, I then tried to install from the SDK tools, it said it was installed and when I tried to run the emulator it said that HAXM was missing.我的小贡献:我遇到了同样的问题,然后我尝试从 SDK 工具安装,它说它已安装,当我尝试运行模拟器时它说 HAXM 丢失。 At least from the SDK tools, the folder was created.至少从 SDK 工具中创建了该文件夹。 Tried to install it many times with no success.尝试安装了很多次都没有成功。 Then I went to the folder indicated (...\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelarated_Execution_Manager) and ran the installer manually and it worked.然后我转到指示的文件夹(...\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelarated_Execution_Manager)并手动运行安装程序,它工作。

In case this may help anyone如果这可以帮助任何人

If your system uses AMD processor, then Intels HAXM doesn't work.如果您的系统使用 AMD 处理器,则 Intel 的 HAXM 不起作用。 Refer Intel's HAXM equivalent for AMD on Windows OS 在 Windows 操作系统上参考英特尔的 HAXM 等效项

If you have an AMD processor you should use WHPX.如果你有 AMD 处理器,你应该使用 WHPX。 It worked for me.它对我有用。

Source 资源

Steps in case the link is not working in the future:万一该链接将来无法正常工作的步骤:

Before you can enable WHPX, your computer must meet the following requirements:在启用 WHPX 之前,您的计算机必须满足以下要求:

  • Intel processors: Support for Virtualization Technology (VT-x), Extended Page Tables (EPT), and Unrestricted Guest (UG) features.英特尔处理器:支持虚拟化技术 (VT-x)、扩展页表 (EPT) 和无限制访客 (UG) 功能。 VT-x must be enabled in your computer's BIOS settings.必须在计算机的 BIOS 设置中启用 VT-x。

  • AMD processors: AMD Ryzen processor recommended. AMD 处理器:推荐使用 AMD Ryzen 处理器。 Virtualization or SVM must be enabled in your computer's BIOS settings.必须在计算机的 BIOS 设置中启用虚拟化或 SVM。

  • Android Studio 3.2 Beta 1 or higher (download from developer.android.com) Android Studio 3.2 Beta 1 或更高版本(从 developer.android.com 下载)

  • Android Emulator version 27.3.8 or higher (download using the SDK Manager) Android 仿真器版本 27.3.8 或更高版本(使用 SDK 管理器下载)
  • Windows 10 with April 2018 Update or higher Windows 10 2018 年 4 月更新或更高版本

To install WHPX on Windows, follow these steps:要在 Windows 上安装 WHPX,请执行以下步骤:

  1. From the Windows desktop, right-click the Windows icon and select Apps and features.在 Windows 桌面上,右键单击 Windows 图标和 select 应用程序和功能。
  2. Under Related settings, click Programs and Features.在相关设置下,单击程序和功能。
  3. Click Turns Windows Features on or off.单击打开或关闭 Windows 功能。
  4. Select Windows Hypervisor Platform Select Windows 管理程序平台
  5. Click OK.单击确定。
  6. Once the installation has finished, restart your computer.安装完成后,重新启动计算机。

Following the instructions below worked for me, just enabled the virtualization setting in BIOS.按照下面的说明对我有用,只需在 BIOS 中启用虚拟化设置
The original issue comment: https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors/issues/17#issuecomment-646343114原问题评论: https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors/issues/17#issuecomment-646343114

1- Restart your computer 1-重新启动计算机
2 - On the boot up image, quickly press f12 to enter bios (might be a different function key depending on your motherboard) 2 - 在启动图像上,快速按 f12 进入 bios(可能是不同的 function 键,具体取决于您的主板)
3 - Go to BIOS configurations (navigation is done with arrow keys enter key to go into or select, and esc to go back) 3 - Go to BIOS configurations (navigation is done with arrow keys enter key to go into or select, and esc to go back)
4 - Go to the MTI tab (should be the default tab) 4 - Go 到 MTI 选项卡(应该是默认选项卡)
5 - Go into "Advanced Frequency Settings" 5 - Go 进入“高级频率设置”
6 - Scroll to "SVM Mode" 6 - 滚动到“SVM 模式”
7 - You can also look for anything that says virtualization or VT-x if you dont see SVM 7 - 如果你没有看到 SVM,你也可以寻找任何说虚拟化或 VT-x 的东西
8 - Click, enter 8 - 单击,输入
9 - Highlight "enable" and click enter 9 - 突出显示“启用”并点击进入
10 - Click ESC to go back 10 - 点击 ESC 到 go 返回
11 - Scroll to the right to get to the save tab 11 - 向右滚动到保存选项卡
12 - Highlight "Save and quit" 12 - 突出显示“保存并退出”
13 - Click enter 13 - 点击进入
14 - Your computer will restart. 14 - 您的计算机将重新启动。 Try to reinstall the SDK Tool, "Android Emulator Hypervisor Driver for AMD Processor (installer) through android studio尝试通过 android 工作室重新安装 SDK 工具,“Android Emulator Hypervisor Driver for AMD Processor (installer)”

I booted into my BIOS and enabled Hyper-virtualization.我启动了我的 BIOS 并启用了超虚拟化。 And that worked for me!这对我有用!

Tools>SDK Manager>Appearance & Behavior>System Settings>Android SDK:工具>SDK 管理器>外观和行为>系统设置>Android SDK:

Go to SDK Tools tab>check "Intel x86 Emulator Accelerator (HAXM)">Apply Go 到 SDK 工具选项卡>检查“英特尔 x86 仿真器加速器(HAXM)”>应用

When you try to run the emulator from the AVD manager, you'll probably notice that there is an alert to install the intel HAXM, try to install it by just clicking install, if you are able to run the emulator, congratulation.当您尝试从 AVD 管理器运行模拟器时,您可能会注意到安装 intel HAXM 的警报,尝试通过单击安装来安装它,如果您能够运行模拟器,恭喜。 you did solve problem.你确实解决了问题。

If not you may have to install it manually by going into the following path:如果没有,您可能必须通过以下路径手动安装它:

C:\Users\$user\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager

Just replace $user with your.只需将$user替换为您的。 You'll find the installation file so run it.你会找到安装文件,所以运行它。

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

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