Failing to install android studio due to HAXM error on windows - android-studio

I am trying to install android studio with the following custom installation:
However, I get the following error:
Running Intel® HAXM installer
Failed to install Intel HAXM. For details, please check the installation log: "C:\Users\Tal\AppData\Local\Temp\haxm_log2.txt"
Intel® HAXM installation failed. To install Intel® HAXM follow the instructions found at: https://software.intel.com/android/articles/installation-instructions-for-intel-hardware-accelerated-execution-manager-windows
Installer log is located at C:\Users\Tal\AppData\Local\Temp\haxm_log2.txt
Installer log contents:
=== Logging started: 1/22/2021 1:01:07 ===
This computer does not support Intel Virtualization Technology (VT-x) or it is being exclusively used by Hyper-V. HAXM cannot be installed.
Please ensure Hyper-V is disabled in Windows Features, or refer to the Intel HAXM documentation for more information.
I read all over the internet and all solutions were to uncheck Control panel -> Programs and features -> turn windows features on and off -> Hypver-v and to enable VT-x via bios.
I did these steps both but yet to fail in the installation for same reason.
Here is where I've enabled VT-x:
What more could I do?

If you are on windows 7 use this version of Haxm driver or lower
https://github-production-release-asset-2e65be.s3.amazonaws.com/98257850/1c77134c-9f15-11e8-98ba-6f1342d09db8?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20210115%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20210115T002546Z&X-Amz-Expires=300&X-Amz-Signature=db9442a4615cf2cc10a4c0212837ef84100d577c03fdb2913297e9d506609fef&X-Amz-SignedHeaders=host&actor_id=50022328&key_id=0&repo_id=98257850&response-content-disposition=attachment%3B%20filename%3Dhaxm-windows_v7_3_0.zip&response-content-type=application%2Foctet-stream
also take a look at the resales versions https://github.com/intel/haxm/releases/ and look for the version that suit your machine

Related

Unable to install Android Emulator Hypervisor Driver for AMD Processor

I am unable to install Android Emulator Hypervisor Driver for AMD Processor.
It is to be noted that virtualization is enabled.
Emulator Process for AVD was killed shown while running the code in Visual Studio while trying to install the Hypervisor Driver in Android Studio.
Error is also shown in Android Studio while installing the Hypervisor Driver:
What to do now? Thanks.
If you are using AVAST antivirus, It will not work .. So open Avast antivirus UI and go to Menu / Setting / troubleshooting and clear the tick on (( Enable hardware-assisted virtualization )) and restart. It will be installed.
First you should try to see if you have Hyper-V enabled. In most cases, the newer computers use it for hardware acceleration but it doesn't share with other virtualization apps, so to run this on an AMD or Intel VT-x first check if you have Hyper-V installed (go to your control panel, then in Programs and Features window, click “Turn Windows features on or off.” then look for Hyper-V and clear the checkbox then click OK.
If that doesn't work check your BIOS permissions, you can go to advanced CPU configuration or chipset and
find the "Intel Virtualization Technology", enable this option,
or
on AMD enable the SVM
then Save and Exit.
If you are using AVAST antivirus, It will not work .. So open Avast antivirus UI and go to Menu / Setting / troubleshooting and clear the tick on (( Enable hardware-assisted virtualization )) and restart. It will be installed.
This method by Tamer works for me but you have to restart your computer for it to be effective.
I had the same challenge when trying to add Bluestacks as an emulator in Android Studio and this was my solution.
Open PowerShell as Admin and do this command:
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V
A restart should follow and all should be fine.
I'm not sure why you tried installing an AMD Virtualization driver for your Intel-CPU. As other people already suggested, try to install the Intel-Driver instead.
The installation probably failed because the program detected your not using an amd-cpu, so there's no point in installing it.

Can't install Intel HAXM. Tried everything I can

So, I am trying to work on Android Studio. But I can't install Intel HAXM.
I am running Windows 7 and latest android studio
I tried installing from SDK. It installs perfectly but, then "HAXM device not found".
I tried installing different versions of HAXM manually. But everytime these errors pop up, when I do it manually. The errors:
error1
error2
error3
error4
error5
Things I've tried includes:
Enabling Vt-X in advanced BIOS options
Disabling Hyper-V
Installing update of windows suggested in another thread. Windows6.1-KB3033929-x64.
Tried Driver Signature Enforcement Overrider
I can't even remember anymore.
Please Help
What type is your processor? The problem with HAXM is what can installed if you have a processor is not Intel. for this reason some peaple use a emulators like bluestacks o something similar. Good Day!

Android Studio HAXM update issues

Android Studio 2.1.3
I can't seem to update HAXM. Every time I open the AVD, it gives me the following error message:
Virtual machine acceleration driver out-of-date
It then gives me a button to "Reinstall Haxm". Clicking that leads to an installation screen where I can choose the RAM allocation, where I hit Next and it starts installing. I then see it start installing and an extracting dialog flash up and disappear immediately:
It then finishes and says it was updated successfully, but then I hit Finish and it wants me to update again.
I've ensured Hyper-V isn't enabled and that virtualization is enabled in the BIOS. I've also tried installing it manually, and that looks like it all works successfully. And yet, no change in behavior by Android Studio. I have also seen this solution and tried it, with no success.
I can run the ARM EABI v7a emulators; just not the x86 ones. The ARM ones are so slow they're almost unusable, so I'd really like to find a way to fix this!
This machine does have VMWare vSphere installed on it, which is used on a regular basis. Could that be why this is happening?
First a warning. If you have a really old version of HAXM installed, follow their instructions to uninstall the old version before installing the new one.
Before installing latest HAXM, the previous versions from 1.1.4 and
below must be uninstalled using:
sudo /System/Library/Extensions/intelhaxm.kext/Contents/Resources/uninstall.sh
The Intel HAXM installation instructions are confusing and outdated, but this part is correct:
once you have installed the package, the status will appear as
‘Installed’, which is misleading as this is not the case. The SDK
only copies the Intel HAXM executable on your machine, and it is up to
you to install the executable.
I'm using Android Studio 3.0.1 on a Mac (10.11 El Capitan) and have not seem a "Reinstall HAXM" button like you described, but when an emulator is launched I do see this in the Event Log:
Emulator: WARNING: HAXM 6.0.5 is installed. Please install HAXM >= 6.2.1 to fix compatibility issues on Mac.
In SDK Manager -> SDK Tools it says the Intel X86 Emulator Accelerator (HAXM installer) is version 6.2.1. I have updated it via the SDK Manager from previous versions several times in the past but didn't realize the update was not complete.
Solution on Windows: Find the IntelHAXM.exe file and run it.
It might be at C:\Program Files\Android\android-sdk\extras\Intel\Hardware_Accelerated_Execution_Manager\IntelHaxm.exe
Solution on Mac: Find the .dmg file, open it, and double-click on the .mpkg file inside to start the actual installation. It will say the software is already installed. Press OK -> Continue -> Install to "re-install" it (meaning actually to install the newer version).
In my case the .dmg file was found at Users/{username}/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/IntelHAXM_6.2.1.dmg

cant install Intel HAXM with Error Failed to configure Driver:unknown error . Failed to open Driver

I am using Windows 7 Ultimate, While installing and studio then creating AVD, This error occurs " Enable VT-x in your BIOS security settings, ensure that your Linux distro has working KVM module.".
Intel virtualization is enabled in BOOT Menu, While installing Intel HAXM manually - "Failed to configure Driver:unknown error. Failed to open Driver"
As directed by this site to check hyper-v is enabled https://blogs.technet.microsoft.com/schadinio/2010/07/09/installing-hyper-v-manager-on-windows-7/
and downloaded-> Remote Server Administration Tools for Windows 7 with Service Pack 1 (SP1) from https://www.microsoft.com/en-us/download/details.aspx?id=7887
And tried to install above software it came with the error
My processor support Virtualization and I have enabled virtualization in the boot menu.
I had the same problem.
I tried all tricks out there, but nothing worked.
The issue only occurred when I installed 7.2.0, so I reverted back to 7.1.0 and it worked again!
Download 7.1.0 and uninstall others and install 7.1.0.
Old releases can be found here.

Hardware Acceleration issue with emulator on Android Studio

I installed Android Studio and fired up the default emulator (Nexus 5 API 23), but got the following error message:
emulator: ERROR: x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAXM must be updated (version 1.1.5 < 6.0.1).
It seems that a lot of people already encountered this issue and the solution would be to install Intel x86 Emulator Accelerator, but in my case, it is already installed.
Another thing I read is:
After you download it and make sure you run the setup located in: {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe
I'm on a 2015 retina Macbook though, so this is not an option.
Also when creating a new Virtual Device, the error message remains the same.
What can I do to get a working emulator?
Thanks in advance!
You should mount and run the IntelHAXM_1.1.4.dmg file located in {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager
Actually problem is that HAXM is downloaded but not installed.
So you should run executable file and install new version of HAXM.
HAXM path: {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager

Resources