热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

在使用AMD处理器启动AVD时出错-ErrorinlaunchingAVDwithAMDprocessor

IhaveWindows8.1prowithanAMDprocessor.IinstalledtheAndroidSDKandEclipse.Itworksbut

I have Windows 8.1 pro with an AMD processor. I installed the Android SDK and Eclipse. It works but the problem is that when I Create AVD and launch it shows this error:

我有Windows 8.1 pro和AMD处理器。我安装了Android SDK和Eclipse。它是有效的,但问题是当我创建AVD并启动时,它会显示这个错误:

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!

仿真器:错误:x86仿真目前需要硬件加速!请确保英特尔HAXM已正确安装并可用。CPU加速状态:HAX内核模块没有安装!

I have already installed Intel Hardware_Accelerated_Execution_Manager and I have enabled Virtual modulation from the boot menu, but it's still not working.

我已经安装了Intel Hardware_Accelerated_Execution_Manager,我已经从启动菜单中启用了虚拟调制,但它仍然不起作用。

18 个解决方案

#1


834  

Make sure you have installed HAXM installer on your SDK Manager.

确保在SDK管理器上安装了HAXM安装程序。

Android SDK Manager

After you download it and make sure you run the setup located in: {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe

下载后,请确保运行安装在:{SDK_FOLDER}\ \intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe。

Note: in Android Studio, the command "intelhaxm.exe" has been changed to "intelhaxm-android.exe"

注意:在Android Studio中,命令是“intelhaxm”。exe已改为intelhaxm- androide

If you get the error "VT not supported" during the installation disable Hyper-V on windows features. You can execute this command dism.exe /Online /Disable-Feature:Microsoft-Hyper-V. You will also need "Virtualization Technology" to be enabled on your BIOS

如果在安装过程中出现“不支持VT”的错误,请禁用windows特性上的Hyper-V。您可以执行这个命令。exe /网络/禁用特性:Microsoft-Hyper-V。您还需要在BIOS中启用“虚拟化技术”

#2


202  

  1. Open SDK Manager and download Intel x86 Emulator Accelerator (HAXM installer) if you haven't.

    打开SDK管理器并下载Intel x86仿真器加速器(HAXM安装程序)。

  2. Now go to your SDK directory (C:\users\username\AppData\Local\Android\sdk, generally). In this directory, go to extras → Intel → Hardware_Accelerated_Execution_Manager and run the file named "intelhaxm-android.exe".

    现在,到你的SDK目录(C:\用户\用户名\AppData\本地\Android\ SDK,一般)。在这个目录中,去额外→英特尔→Hardware_Accelerated_Execution_Manager并运行名为“intelhaxm-android.exe”的文件。

    In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled", go to your BIOS settings and enable hardware virtualization.

    如果您遇到“未启用Intel虚拟化技术(vt,vt-x)”之类的错误,请转到BIOS设置并启用硬件虚拟化。

  3. Restart Android Studio and then try to start the AVD again.

    重新启动Android Studio,然后再次尝试启动AVD。

It might take a minute or 2 to show the emulator window.

显示仿真器窗口可能需要一分钟或两分钟。

#3


143  

If you're running Mac, as @pedro mentions ensure you have the HAXM installer dowloaded via the Android SDK Manager.

如果您正在运行Mac, @pedro提到要确保您通过Android SDK管理器加载了HAXM安装程序。

Next install it! In finder navigate to /YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/

下一个安装它!在finder中导航到/YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/

Run and install the .mpgk in the following .dmg

运行和安装.mpgk在以下。dmg。

  • Yosemite: IntelHAXM_1.1.0_for_10.10.dmg
  • 约塞米蒂:IntelHAXM_1.1.0_for_10.10.dmg
  • Pre-yosemite: IntelHAXM_1.1.0_below_10.10.dmg
  • Pre-yosemite:IntelHAXM_1.1.0_below_10.10.dmg
  • El Capitan: IntelHAXM_6.0.1.dmg - please install the IntelHAXM_6.0.1.mpgk file within - it will ask you if you want to reinstall it. Just say yes.
  • 埃尔卡皮坦:IntelHAXM_6.0.1。请安装IntelHAXM_6.0.1。mpgk文件-它会问你是否要重新安装它。是的。

Example:

例子:

$cd /YOUR_SDK_PATH/extras/intel/Hardware_Accelerated_Execution_Manager/
$open IntelHAXM_1.1.0_below_10.10.dmg

#4


101  

First, you must enable Intel virtualization technology from the BIOS:

首先,您必须从BIOS中启用Intel虚拟化技术:

Enter image description here

Second, navigate to your SDK ...\extras\intel\Hardware_Accelerated_Execution_Manager:

其次,导航到你的SDK…\extras\ \ \Hardware_Accelerated_Execution_Manager:

Enter image description here

Then install intelhaxm-android.exe.

然后安装intelhaxm-android.exe。

Note that if you can't find this file in the directory, make sure you install the package from your SDK manager:

注意,如果在目录中找不到该文件,请确保从SDK管理器安装该包:

Enter image description here

#5


29  

This resolves it for me:

这就解决了我的问题:

Go to (C:\users\%USERNAME%\AppData\Local\Android\sdk, generally).

去(C:\ \ %的用户名% \ AppData \用户本地Android \ \ sdk,一般)。

Then go to Extras -> Intel -> Hardware_Accelerated_Execution_Manager and run the file named "intelhaxm-android.exe".

然后转到Extras -> Intel -> Hardware_Accelerated_Execution_Manager,并运行名为“intelhaxm-android.exe”的文件。

In case you get an error like "Intel virtualization technology (vt,vt-x) is not enabled", go to your BIOS settings and enable Hardware Virtualization.

如果您遇到“未启用Intel虚拟化技术(vt,vt-x)”之类的错误,请转到BIOS设置并启用硬件虚拟化。

Restart your studio

重启你的工作室

#6


20  

For AMD processors:

对AMD处理器:

You don't need Genymotion, just create a new Virtual Device and while selecting the system Image select the ABI as armeabi instead of the default x86 one.

您不需要Genymotion,只需创建一个新的虚拟设备,在选择系统映像时选择ABI作为armeabi而不是默认的x86。

enter image description here

#7


19  

I faced the same problem recently.

最近我也遇到了同样的问题。

I installed the HAXM installer on your SDK Manager:

我在您的SDK管理器上安装了HAXM安装程序:

Enter image description here

And then installed the latest Intel HAXM driver:

然后安装了最新的英特尔HAXM驱动程序:

https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement

https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement

And voila!!! The emulator works like a charm :)

瞧! ! !仿真器的工作原理就像一个魔咒:)

#8


15  

For AMD processors:

对AMD处理器:

Go to AVD manager and create a new virtual device as an ARM system image.

转到AVD管理器并创建一个新的虚拟设备作为ARM系统映像。

#9


12  

So I am having this issue and it seems that unless you are on Linux you will not be able to use HAXM. [EDIT: this is if you have an AMD chip (non intel) of course as that is the issue]

所以我有这个问题,似乎除非你在Linux上,否则你无法使用HAXM。[编辑:这是如果你有一个AMD芯片(非英特尔)当然,因为这是一个问题]

As stated on the Android Site;

如Android网站所述;

Many modern CPUs provide extensions for running virtual machines (VMs) more efficiently. Taking advantage of these extensions with the Android emulator requires some additional configuration of your development system, but can significantly improve the execution speed. Before attempting to use this type of acceleration, you should first determine if your development system’s CPU supports one of the following virtualization extensions technologies:

许多现代cpu为更有效地运行虚拟机(vm)提供了扩展。利用Android模拟器的这些扩展需要开发系统的一些额外配置,但可以显著提高执行速度。在尝试使用这种加速之前,您应该首先确定您的开发系统的CPU是否支持以下虚拟化扩展技术之一:

Intel Virtualization Technology (VT, VT-x, vmx) extensions

> AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)

> AMD虚拟化(AMD- v, SVM)扩展(只支持Linux)

As others have mentioned Genymotion may be a solution.

正如其他人提到的,Genymotion可能是一个解决方案。

#10


8  

For those who are using Android Studio based on Jetbrains:

对于那些使用基于Jetbrains的Android Studio的用户:

  1. Goto Tools > Android > SDK Manager

    Goto工具> Android > SDK管理器。

  2. Under Extras --> select the checkbox Intel x86 Emulator Accelorator

    在Extras——>下,选择复选框Intel x86仿真器Accelorator

For those who are unable to use Nexus AVD can also try using Generic AVD.

对于那些无法使用Nexus AVD的用户,也可以尝试使用通用AVD。

  1. Goto Tools > Android > AVD Manager
  2. Goto工具> Android > AVD Manager

Then create a new Genreic AVD with something like QVGA and use for your app. This AVD does not use hardware acceleration.

然后使用QVGA创建一个新的Genreic AVD,并用于你的应用。这个AVD不使用硬件加速。

#11


8  

I waste too much time on this, and none of the previous answers work. I find that Avast is the issue!!! If you have Avast installed in your system, you have to:

我在这个问题上浪费了太多的时间,而之前的答案都不管用。我发现阿瓦斯特就是问题所在!!!如果你的系统已安装Avast,你必须:

Go to settings tab --> troubleshooting, then you should UNCHECK the "enable hardware-assisted virtualization"

转到settings选项卡——>故障排除,然后您应该取消“启用硬件辅助虚拟化”

Restart your PC and install the intelhaxm-android.exe if it is not installed. You can find it in C:\Users\{YOUR USERNAME}\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager

重启你的电脑,安装intelhaxm-android。如果没有安装exe。你可以找到它在C:\Users\ {你的用户名} \ AppData \本地Android \ sdk \ \配件\ \ Hardware_Accelerated_Execution_Manager英特尔

#12


8  

I was facing this issue running the emulator inside Oracle VirtualBox. For me the solution was to modify the emulator to use an ARM CPU instead of x86.

我在Oracle VirtualBox中运行仿真器时遇到了这个问题。对我来说,解决方案是修改模拟器,使其使用ARM CPU而不是x86。

#13


7  

You need to read (and post) the output of

您需要读取(并发布)输出

sc query intelhaxm

as stated on http://developer.android.com/tools/devices/emulator.html#accel-vm

在http://developer.android.com/tools/devices/emulator.html accel-vm如上所述

You open a command prompt window by right click on the start menu, choose execute and write 'cmd'.

通过右键单击开始菜单打开命令提示窗口,选择execute并写入'cmd'。

See also Android Emulator Doesn't Use HAXM .

还可以看到Android模拟器不使用HAXM。

If you cannot get the emulator to work you might want to try out an easier alternative: Genymotion - http://genymotion.com/

如果你不能让模拟器工作,你可能想尝试一个更简单的选择:Genymotion - http://genymotion.com/

#14


5  

For Android Studio 1.0.2:

为Android工作室1.0.2中:

First make sure Intel x86 emulator accelerator is installer. Check it in your SDK Manager. If not, then install it from there.

首先确保Intel x86模拟器加速器是安装程序。在SDK管理器中检查它。如果没有,则从那里安装它。

Go to your Android SDK folder, **{SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager**

转到你的Android SDK文件夹** *{SDK_FOLDER}\ \ \ \ \Hardware_Accelerated_Execution_Manager**

There you will find silent_install.bat.

在那里你会找到silent_install.bat。

Run it. It will create haxm_silent_run.log. After that, close and restart your Android Studio and then run your app.

运行它。它会创建haxm_silent_run.log。然后,关闭并重新启动Android Studio,然后运行应用程序。

It will work. In case of a problem, check the haxm_silent_run.log file.

它将工作。如果出现问题,请检查haxm_silent_run。日志文件。

#15


0  

I didn't see any mention about Windows 7, but if you have this OS, you can download the HAXM here...

我没有看到任何关于Windows 7的介绍,但是如果你有这个操作系统,你可以在这里下载HAXM…

#16


0  

While creating a Virtual Device select the ARM system Image. Others have suggested to install HAXM, but the truth is haxm wont work on amd platform or even if it does as android studio does not supports amd-vt on windows the end result will still be a very very slow emulator to run and operate. My recommendation would be to either use alternative emulator like Genymotion (works like a charm with Gapps installed) or switch to linux as then you will get the benefit of amd-vt and emulator will run a lot faster.

在创建虚拟设备时,选择ARM系统映像。其他人已经建议安装HAXM,但事实是HAXM不能在amd平台上工作,或者即使它像android studio不支持windows上的amd-vt那样工作,最终结果仍然是运行和操作非常缓慢的模拟器。我的建议是,要么使用像Genymotion这样的替代仿真器(像安装了Gapps的魔法一样工作),要么切换到linux,这样你就会得到amd-vt的好处,而模拟器会运行得更快。

#17


0  

As many other pointed out, Intel HAXM only supports Intel CPUs. Since Windows 1804 you can use Microsoft's Hyper-V instead of HAXM for the emulator. This also helps people who want to use Hyper-V for virtual machines as you need to disable hyper-v to run haxm.

正如许多人指出的,英特尔HAXM只支持英特尔cpu。由于Windows 1804可以使用微软的Hyper-V而不是HAXM作为模拟器。这也有助于那些希望在虚拟机中使用Hyper-V的人,因为您需要禁用Hyper-V来运行haxm。

Short version:

短版:

  • install Windows Hypervisor Platform feature
  • 安装Windows系统管理程序平台特性
  • Update to Android Emulator 27.2.7 or above
  • 更新到Android模拟器27.2.7或以上
  • put WindowsHypervisorPlatform = on into C:\Users\your-username\.android\advancedFeatures.ini or start emulator or command line with -feature WindowsHypervisorPlatform
  • 给到C:\Users\ WindowsHypervisorPlatform =你的用户名\ .android \ advancedFeatures。使用-feature WindowsHypervisorPlatform启动模拟器或命令行

Long version with more details:

更详细的长篇版本:

https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/

https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/

#18


-2  

In my case, HAXM was already installed in SDK Manager. But every time I attempted to intelhaxm-android.exe, it would silently fail.

在我的例子中,HAXM已经安装在SDK管理器中。但是每次我尝试使用intelhaxm-android。例如,它会无声地失败。

Finally, I extracted the internal installers out of intelhaxm-android.exe in 7-zip. Copied the three files to another directory and finally got a real installer to run. Ran without a hitch and HAXM issues were gone.

最后,我从intelhaxm-android中提取了内部安装程序。在7 - zip exe。将三个文件复制到另一个目录,并最终得到一个真正的安装程序。运行顺利,HAXM问题消失了。


推荐阅读
author-avatar
皇家突然回家_390
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有