So I am quite new to Android development but I have Visual Studio 2017 installed and am trying to compile and run the default "Hello World" app just to make sure all of the mechanisms are properly in place for my compiler.
Whenever compiling, the emulated device shows up for a second then goes away. Am I missing something?
Here are the settings for my emulated phone:
I did discover that it does work when switching the CPU to ARM instead of x86 but then I get slower performance. Any ideas why?
It turns out that my HAXM version was not up to date. Per Code-Apprentice's advice I tried to launch the loaded devices using command line:
How do I launch the Android emulator from the command line?
This led me to see that there was an error with my HAXM version as it displayed the following error:
Incompatible HAX module version 3, requires minimum version 4. No accelerator found.
In order to update my HAXM I did the following:
I deleted the folder C:\Windows\System32\DRVSTORE\intelhaxm_
I deleted the folder C:\Program Files (x86)\Android\android-sdk\extras\intel
From the SDK manager I went to Tools > Extras > Intel x86 Emulator Accelerator (HAXM installer) and installed it.
From there I went to C:\Program Files (x86)\Android\android-sdk\extras\intel\Hardware_Accelerated_Execution_Manager and launched intelhaxm-android.exe and selected uninstall. After uninstalled I launched intelhaxm-android.exe again and installed.
After the above, my x86 emulated device will now launch
where is problem?
emulator: incompatible HAX module version 3 requirs minimum version 4
emulator: no accelarator found
emulator: failed to intialize HAX: invalid argument
Open SDK Manager and update HAXM.
Tools > SDK Manager > SDK Tools > Intel x86 Emulator Accelerator (HAXM installer)
First of all go to Tools>SDK Manager>SDK Tools.
Then you can see the list of SDK developer tools available.
The tools which were already installed are checked and others are unchecked. Moreover, you can see the status as 'Not installed' or 'Installed'.
Most probably, 'Intel x86 Emulator Accelerator (HAXM installer)' is checked in your system. First uncheck it and then click on Apply button. Then program will redirect you for uninstallation of the accelerator.
After you get the message as Uninstallation successful, tick the checkbox again and click Apply button which will trigger the installation again.
After installation Go to Tools>AVD Manager and run whatever Virtual device you want.
I had faced the same error in the past while I was running Android Studio on my windows and after that I did research on the issue and I realized that I must start the HAXM installer manually so that I can use it:
I went to my Android SDK folder in my case it was C:\Users[user's name]\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager\ and there I found that intelhaxm-android.exe file, I clicked on the file and allowed it to finish
The installation process after that I launched my avd device again then it ran properly for me.
Hope this solution will help you in resolving your issues.
In my case after updating HAXM installer through SDK manager,
I installed "intelhaxm-android.exe" (In windows OS) from path:
\sdk\extras\intel\Hardware_Accelerated_Execution_Manager
try this one:
Turn on "virtualisation" option in the BIOS setup while your PC/laptop boots up .
If its already switched on,
re-install haxm.exe and while installing, increase the size allotted to it. At least 2 GB.
now, it should run properly.
I too had the same issue. As the error message states, the installed HAX module is older version and cannot be compatible now. Go to Tools--> SDK Manager--> Click on SDK Tools tab and you can see the 'Intel x86 Emulator Accelerator (HAXM installer)' will be having an update.
Just check the check box and click on Apply and it will install the newer version. That's it.
Tip: Updating the remaining items is a best way to protect yourself from the future error.
For Windows and VIsual Studio:
It turns out that installing and uninstalling HAXM from the Android SDK menu does not mean installing or uninstalling in reality.
Everything worked for me before, but I did not return to this for a long time. So, I had HAXM installed, but the old version. For some reason, Visual Studio could neither update nor uninstall it. When installing a new version, the old one was not replaced and was considered a priority, so installing the new version without removing the old one did not help.
So, how I fixed the error:
"Removed" HAXM via Android SDK menu.
Checked Device manager for HAXM entry (I did not delete anything here because I did not find it)
Removed old HAXM folder from C:\Windows\System32\DRVSTORE\intelhaxm_*
Launched the broken old HAXM installer to remove HAXM registry keys. Before manual intervention, he did not want to work, citing the absence of some kind of .msi file.
Rebooted PC
I made sure that the old HAXM was removed from the system with the command: C:\Program Files (x86)\Android\android-sdk\emulator> .\emulator-check.exe accel
"Installed" HAXM via Android SDK menu. (At this step, nothing was installed - the command from the previous step still reported that there was no HAXM.)
Installed HAXM from Intel official repository: https://github.com/intel/haxm/releases
With command from step 6, I made sure that HAXM was installed correctly (for example, the output on my PC is shown):
PS C:\Program Files (x86)\Android\android-sdk\emulator> .\emulator-check.exe accel
accel:
0
HAXM version 7.7.0 (4) is installed and usable.
accel
After that, emulator should work. Perhaps Android Device Manager will glitch showing that the device emulator is already running (but I did not find qemu* and emulator processes). Probably, this can be solved more accurately, but I just deleted the existing device and created it again.
This question already has answers here:
Android Studio emulator and AMD CPU
(5 answers)
Closed 7 years ago.
I believe this is my first question - as such I apologize if I'm making mistakes or if this is posted incorrectly.
I am attempting to run Android Studio on Windows 8.1.
Android Studio works but I was unable to run my first test app due to an error with HAXM not being installed.
Error in Android Studio when 'Run' is clicked:
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!
Through the SDK Manager I 'installed' HAXM.
I understand that this only means HAXM is downloaded and still needs to be installed. HAXM files were placed into the 'extras' folder within the 'Android' 'sdk' folder. I then attempted to run the intelhaxm-android.exe executable. Initially I had to enter BIOS and enable Virtualization as it was defaulted to 'disabled'. I enabled the virtualization, rebooted twice and attempted to run the haxm installer again.
Now I am receiving a different error.
Error from HAXM Installer:
This computer does not support Intel Virtualization Technology (VT-x). HAXM cannot be installed.Pleaser refer to the Intel HAXM documentation for more information.
From everything that I can find this computer is capable of supporting Virtualization (I am running Windows 8.1 with an AMD processor). Also, as I understand, an Intel vs AMD processor shouldn't make a difference for HAXM to operate??
I downloaded Crystal CPUID to help troubleshoot but, unfortunately, I don't even know how to read the results.
I'm at a complete loss here. I searched far and wide before posting. ANY help is appreciated.
You need to enable Intel Virtualization Technology through your Bios
I am trying to run my app on the simulator on Android Studio. I am new to Android btw. This is the message I got
"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!
"
But I remembered clearly that I did install the simulator on SDK manager. Any ideas? Please advise.
In your Android SDK Manager, scroll down to the "Extras" section and install the Intel x86 Emulator Accelerator (HAXM installer) package.
First of all, make sure that you have installed all the packages in SDK manager (especially extras).
Secondly, if there are other issues have a look at this thread:
https://stackoverflow.com/a/30129536/2507646
One of the issues is enabling virtualization in BIOS settings on your laptop. I had the same issues, and that was the resolution.
I Use the latest version of Android Studio (Ver1.0.1 - 11 December 2014)
When I try to run the emulator, I got this Error :
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!
But I think I've already installed what it needs:
1) I click the Run button ...
2) The Error
3) My SDK Manager
Try to reinstall Intel HAXM (it is in %android-sdk%/extras/intel/Hardware_Accelerated_Execution_Manager) and check if it enabled in your BIOS.
Also (but it is not preferred because slower), you can make your emulator to use arm7 image.
Are you sure the SDK manager actually installed the package?
On my Mac the SDK manager only downloads it, had to install it manually (see here).
How to install per OS: https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager