I know the question is not a new one , but I have tried all the solutions mentioned in other articles , which didn't work at all on my device. So I think there are something different .And here are the question and my computer configuration.
[SC] StartService: OpenService 失败 1060:
指定的服务未安装。
Android Emulator Hypervisor Driver for AMD Processors installation failed. To install Android Emulator Hypervisor Driver for AMD Processors follow the instructions found at: https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors
Done
设备名称 LAPTOP-9D1HR6UR
处理器 AMD Ryzen 5 4600H with Radeon Graphics 3.00 GHz
机带 RAM 16.0 GB (15.4 GB 可用)
系统类型 64 位操作系统, 基于 x64 的处理器
I had that issue a while ago, just to check, do you have SVM enabled on your BIOS? I had that off for me, when I enabled it I was able to install the AMD Virtualisation Driver and it worked. You can quickly check by going into System Info, looking for Hyper-V and seeing if it is marked as "Yes".
I'm using Dell inspiron laptop with i3 processor and using windows 7 OS.While using Android Studio I'm encountering a problem with AVD. When I try to run it, it shows error:
Intel HAXM is required to run this AVD. /dev/kvm is not found. Enable
VT-x in your BIOS security settings, ensure that your Linux distro has
working KVM module.
Follow this link for a thread on '/dev/kvm is not found'
Follow this link for Youtube video on how to enable intel VT-x in windows 10. There should be slight differences on how the interface looks in win 7.
And after following all this and you still cannot run your AVD with HAXM, like I encountered, just reboot. After this, everything worked well for me.
Need help about Intel HAX which crashes under Windows 10 when running Windows 10 as a guest OS in a VM.
Some background information:
Hypervisor: KVM (virt-manager on ubuntu 16.10)
Guest operating system: Windows 10
Nested virtualization allowed
VT-X in Bios set
Intel HAX installed (latest version)
Android Studio (Version 6 as image for the Android emulator)
Problem:
When I run Android Studio and use Intel (x86) boot option to show up Android Emulator, Windows crashes completely. The error is a problem with a sys file of Intel HAX. Unfortunately I expected some wrong behavior of the Windows 10 running as VM with some nested virtualization components. In arm-mode I can start up the Android emulator but it's very slow. Is there a solution to use Google Intel (x86) Android image anyway? Some special key to start the emulator with?
The emulator is not really intended to be run in this configuration. You can try several things:
Run the emulator from the cmd line with the -no-accel flag.
Uninstall HAXM.
Note that performance will not be very good.
If possible try to run the emulator in the linux host, or under a linux guest.
I am trying to run a simple hello world application in Android studio. While running it gave this error "cannot launch AVD in emulator... requires hardware acceleration. Please ensure intel HAXM is properly installed and usable".
So, I downloaded Intel x86 emulator accelerator (HAXM installer), then went to Android->sdk->extras->intel->hardware_Accelerated_Execution_Manager and executed intelHAXM_android.exe. During its execution I encountered the error " VT-x in not turned on".
1. While doing a bit research on this, I encountered this solution:
Control panel -> Programs -> Programs and Features -> Turn windows features on or off,
it displayed a list of features but I couldn't find Hyper-V option. How can I enable it, in order to run my application ?
2. I have also tried running the bcdedit command, then also it gave the same error "cannot launch AVD in emulator... requires hardware acceleration. Please ensure intel HAXM is properly installed and usable".
I am using Windows 10 Home. How should I enable it? Also I read somewhere that Windows 10 Home does not have Hyper-V feature then what is the alternative to run my application?
Thank you.
Hyper-V is not supported on Windows 10 Home edition (Microsoft docs).
The Hyper-V role can be enabled on these versions of Windows 10:
Windows 10 Enterprise
Windows 10 Professional
Windows 10 Education
The Hyper-V role cannot be installed on:
Windows 10 Home
Windows 10 Mobile
Windows 10 Mobile Enterprise
Hyper-V or Virtualization Technology is something that your processor supports. I had similar problem when i was trying to set up Android Studio. It is rather easy to solve the problem, you have to open your bios menu(when starting up your PC pressing F11 or something different according to your BIOS) then you will navigate and find Intel® Virtualization Technology (Intel® VT) and enable it. By default it is disabled.
After this install Intel HAXM and you are good to go.
Lately Google and Intel have published a new way to run the emulator, which should work much better than the previous version (which has emulated ARM CPU). Here are some links about it: this and this.
However, after installing the new components and creating a new emulator configuration as instructed, I get an error and I also can't see any improvements. I've tried both API 10 and API 15, and with GPU enabled and disabled. None of those configurations helped. I've also tried it on two different computers and didn't get any boost (and got the same errors).
It seems that on the posts I've read about it, nobody had any problems with it and all report a much faster emulator.
The error it shows is:
emulator: Failed to open the HAX device!
HAX is not working and emulator runs in emulation mode
emulator: Open HAX device failed
Why is it happening, and is there a way to fix it? Is there anyone else who gets those errors or vice versa?
By the way, I have an Intel CPU, if that could be a problem.
EDIT:
here's what I see in the BIOS, so it should be available... :
I had the same issue, solved it by Installing the Intel Hardware Accelerated Execution Manager. Download it with the SDK Manager, it's in Extras. After this, go to the folder
[Android SDK Root]\extras\intel\Hardware_Accelerated_Execution_Manager
then run IntelHaxm.exe and install.
Here the link of the Intel Hardware Accelerated
IntelHaxm.exe for
Microsoft Windows,Mac OS* X, and Linux
Ubuntu
You'll get the following message if you don't have virtualization enabled in your BIOS:
Small Note for Windows 8 user, Intel HAX will not work if Hyper-V feature is enable. Hyper-V (like most of the virtualization tech) will exclusively lock the VT extension witch will prevent HAX to work properly. A workaround if you “need” Hyper-V too might be to stop manually the Hyper-V services when you need HAX (haven’t tested it yet through).
If all else fails. Simply try to download the Intel HAXM zip manually, extract and install.
check here
Remember this only works for an Intel cpu that supports Intel Virtualization Technology. And you MUST enable virtulization in your bios.
It's a fairly decent and very noticeable improvement to the android emulator if you ask me.
Not every processor is supporting the virtualization!
To find out your chipset abilities go to http://ark.intel.com/,
insert the name of your processor in the search line and check out the resolve.
Advanced Technologies: ...
Intel® Virtualization Technology (VT-x) = ???
If you see "No", you can forget HAXM!
Here are the steps to get the Hardware Accelerated Execution (HAX) which is really quite a lot:
1-check your processor Intel website to see if it supports Intel VT-x or not:
http://ark.intel.com/Products/VirtualizationTechnology
all Intel Core i processors and some other selected processors support Intel VT-x
2- check your bios to enable Intel VT-x , usually called hardware virtualization or Intel virtualization in bios
3- check if you are using a software conflicting with HAXM, popular software conflicting with haxm include but not limited to:
Hyper-V
Windows phone SDK 8
Avast antivirus 8
4-install Intel management engine interface (MEI), this driver is usually not installed and is not part of retailer Windows DVD, even Windows 8.
Check this post about how to install:
http://communities.intel.com/community/vproexpert/blog/2011/12/19/mei-driver-now-available-via-microsoft-windows-update
This driver is required and is not optional to activate Hardware Acceleration
you can also install it from windows update
5-use android SDK manager to download Extras -> Intel x86 Hardware Accelerated Execution Manager.
6-Run installer of HAXM from:
[Android SDK Root]\extras\intel\Hardware_Accelerated_Execution_Manager\IntelHaxm.exe
if you passed the previous steps the installer will work just fine ,otherwise it will fail
7-start AVD and see the difference in performance, Animations are faster
System UI and launchers crashes in 4.0.3 but are just fine for 4.2.2
see installation guide by intel:
Using SDK Manager to download Intel HAX did not work.
Downloading and installing it from the Intel website did work.
http://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager/
Top Tip: making the change in my BIOS to enable virtualization and then using "restart" did not enable virtualization. Doing a cold boot (i.e. shutdown and restart) suddenly made it appear.
The first step (on Windows) is to make sure that the Micrsoft Hardware-Assisted Virtualization Tool reports that "this computer is configured with hardware-assisted virtualization".
http://www.microsoft.com/en-us/download/details.aspx?id=592
You might need to turn on virtualization in your BIOS, most manufacturers disable it by default. Intel HAX requires CPU virtualization to be enabled.
The same began to happen to me about one week ago, without apparent reason (99% sure that I didn't upgrade anything); after being able to run the emulator for some time it just stopped working without an apparent reason.
I tried to install the Intel thingie, but the installer reported that my machine doesn't support Intel VM, despite the fact that it has an Intel i3 processor and that virtualization is enabled (perhaps XP is too old an OS for that, although MS VM, Oracle's Virtual Box and VMWare have been installed an working in this machine with the same OS).
I just edited the VD to emulate an Arm processor, and everything is working again.
Perhaps not the optimal solution, but it works!
For Windows, there are some answers explained how it works. But I'm a Mac User, I don't know how to install HAX driver for Mac as they did for Windows. Finally I found the below link and it did fix my problem. You should download HAXM of Mac
and then install it.
https://software.intel.com/en-us/articles/intel-hardware-accelerated-execution-manager-end-user-license-agreement-macosx/
Complete step-by-step instructions for running the accelerated emulator can be found on the official Android developers website:
Caution: As of SDK Tools Revision 17, the virtual machine acceleration
feature for the emulator is experimental; be alert for
incompatibilities and errors when using this feature.
You have to download the Intel® Hardware Accelerated Execution Manager.
Then you will get this message:
Starting emulator for AVD 'test'
emulator: device fd:740
HAX is working and emulator runs in fast virt mode
For Mac users who want to check whether your processor supports virtualisation, use the maccpuid software and look for VMX. If it is checked then you're good to go.
Download it here
Here there are two issues we have to concentrate on:
HAX device failed to open,
For this problem, you have to run the HAX device setup file from the HAX addon folder. Follow Speed Up Android Emulator to know clearly how.
If you created the AVD through AVD manager then you can change the RAM size in AVD Manager and device edit option.
If you created the AVD through command line, then you should start the AVD from command line will work,
emulator -memory 512 -avd gtv_avd
If everything else fails, it's good to try my option and download a HAXM installer.
It needs to be copied to HAXM installation folder and then started from command line (start CMD as an Administrator). After restarting computer HAXM will be installed. It perfectly worked for me as I was having problems with installing it on my laptop.
After all simply type sc query intelhaxm in your cmd in order to check whether HAXM is installed properly.
If you are running an Intel processor make sure the HAXM (Intel® Hardware Accelerated Execution Manager) installer is installed via SDK Manager by checking this option in SDK Manager. And then run the HAXM installer ext via the path below.
your_sdk_folder\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe
Also check the RAM size allocated while doing HAX installation so it fits the RAM size of your emulator.
This video shows all the required steps which may help you to solve the problem.
This video will also help you if you face a problem after installing HAXM.
Download HAXM from the Intel site.
Install it.
And then run the AVD from AndroidStudio, menu -> Tools -> AVD. Choose x86.
It works!