热门标签 | 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问题消失了。


推荐阅读
  • 360SRC安全应急响应:从漏洞提交到修复的全过程
    本文详细介绍了360SRC平台处理一起关键安全事件的过程,涵盖从漏洞提交、验证、排查到最终修复的各个环节。通过这一案例,展示了360在安全应急响应方面的专业能力和严谨态度。 ... [详细]
  • 深入探讨CPU虚拟化与KVM内存管理
    本文详细介绍了现代服务器架构中的CPU虚拟化技术,包括SMP、NUMA和MPP三种多处理器结构,并深入探讨了KVM的内存虚拟化机制。通过对比不同架构的特点和应用场景,帮助读者理解如何选择最适合的架构以优化性能。 ... [详细]
  • 在创建新的Android项目时,您可能会遇到aapt错误,提示无法打开libstdc++.so.6共享对象文件。本文将探讨该问题的原因及解决方案。 ... [详细]
  • 采用IKE方式建立IPsec安全隧道
    一、【组网和实验环境】按如上的接口ip先作配置,再作ipsec的相关配置,配置文本见文章最后本文实验采用的交换机是H3C模拟器,下载地址如 ... [详细]
  • 深入解析JVM垃圾收集器
    本文基于《深入理解Java虚拟机:JVM高级特性与最佳实践》第二版,详细探讨了JVM中不同类型的垃圾收集器及其工作原理。通过介绍各种垃圾收集器的特性和应用场景,帮助读者更好地理解和优化JVM内存管理。 ... [详细]
  • ImmutableX Poised to Pioneer Web3 Gaming Revolution
    ImmutableX is set to spearhead the evolution of Web3 gaming, with its innovative technologies and strategic partnerships driving significant advancements in the industry. ... [详细]
  • 本文探讨了 Spring Boot 应用程序在不同配置下支持的最大并发连接数,重点分析了内置服务器(如 Tomcat、Jetty 和 Undertow)的默认设置及其对性能的影响。 ... [详细]
  • 深入解析 Spring Security 用户认证机制
    本文将详细介绍 Spring Security 中用户登录认证的核心流程,重点分析 AbstractAuthenticationProcessingFilter 和 AuthenticationManager 的工作原理。通过理解这些组件的实现,读者可以更好地掌握 Spring Security 的认证机制。 ... [详细]
  • 配置Windows操作系统以确保DAW(数字音频工作站)硬件和软件的高效运行可能是一个复杂且令人沮丧的过程。本文提供了一系列专业建议,帮助你优化Windows系统,确保录音和音频处理的流畅性。 ... [详细]
  • 利用决策树预测NBA比赛胜负的Python数据挖掘实践
    本文通过使用2013-14赛季NBA赛程与结果数据集以及2013年NBA排名数据,结合《Python数据挖掘入门与实践》一书中的方法,展示如何应用决策树算法进行比赛胜负预测。我们将详细讲解数据预处理、特征工程及模型评估等关键步骤。 ... [详细]
  • 本文详细探讨了如何通过分析单个或多个线程在瓶颈情况下的表现,来了解处理器资源的消耗。无论是单进程还是多进程环境,监控关键指标如线程数量、占用时间及调度优先级等,有助于揭示潜在的性能问题。 ... [详细]
  • 为了解决不同服务器间共享图片的需求,我们最初考虑建立一个FTP图片服务器。然而,考虑到项目是一个简单的CMS系统,为了简化流程,团队决定探索七牛云存储的解决方案。本文将详细介绍使用七牛云存储的过程和心得。 ... [详细]
  • 主调|大侠_重温C++ ... [详细]
  • 本文探讨了在iOS平台上开发BLE(蓝牙低功耗)应用程序时遇到的挑战,特别是如何实现应用在后台模式下仍能持续扫描并连接蓝牙设备。文章提供了具体的配置方法和常见的问题解决方案。 ... [详细]
  • 本文针对初学者在创建Android项目时遇到的R.java文件错误提供了解决方案,通过实际案例和详细的日志分析,帮助读者快速定位并解决问题。 ... [详细]
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社区 版权所有