How to Enable Intel Visualization Technology(VT-X) without BIOS Setup - android

I am Developing android application using Eclipse. I got error HAX Kernal is not installed. I installed Intel HAXM using SDK manager. Even though the problem is occurred. Hiper-V is also disabled in my windows feature.
I forget my BIOS Password. So i am not tried using BIOS Setup. Please help me to enable Intel Visualization Technology(VT-X) without BIOS Setup
I got Below Error:

Please help me to enable Intel Visualization Technology(VT-X) without BIOS Setup
That is not possible, sorry. Contact your PC manufacturer for assistance in getting into your BIOS setup.

I was having the same problem and I had solved it by myself
Don,t worry here is the simple solution for you:
Go to your standalone SDK Manager, and find for Intel_HAXM type of package in Extras section. In worst case if it is already ind=stalled then try to update or reinstall it.
Select that package and then install it from the SDK Manager.
Now here is the important part, Go to "C:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager" and then open "intelhaxm-android.exe" .
Install it. If it says that your computer already has this installed , do you want to update it, then go for the same.
Restart your Android Studio or eclipse, and now everything is fine.

Related

Error when trying to run Android Studio Emulator for Empty Activity [duplicate]

I tried to run my Hello World application in Android Studio. I got the following 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!
Can you tell me what I can do with the error?
As per this response, the complete steps are:
1) Open SDK Manager (In Android Studio, go to Tools > Android > SDK Manager) and Download Intel x86 Emulator Accelerator (HAXM installer) if you haven't.
2) Now go to your SDK directory C:\users\%USERNAME%\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\ and run the file named 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.
3) Restart Android Studio and then try to start the AVD again.
It might take a minute or 2 to show the emulator window.
[edit]
The Android developer page has been updated with an excellent guide to get an emulator up and running.
[/edit]
Install the Intel x86 Emulator Accelerator using the Android SDK Manager
If you have Android Studio installed, you can start the SDK manager via Tools -> Android -> SDK Manager.
The Android SDK Manager does not actually install HAXM, it just downloads it. In the top of the Android SDK manager window, you can find where the installer is located on your PC. Please open the subfolder extras\intel\Hardware_Accelerated_Execution_Manager, and run the installer manually: intelhaxm-android.exe.
To use the intel HAXM, you need to have a CPU with virtualization support:
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:
Intel Virtualization Technology (VT, VT-x, vmx) extensions
AMD Virtualization (AMD-V, SVM) extensions (only supported for Linux)
[edit]
As of Nov 27, 2019, Google has released an emulator for AMD CPUs.
[/edit]
If your CPU does not have virtualization support, you could use an ARM emulator instead:
You can edit an existing, or add a new Virtual Device in the Android
Virtual device Manager, and change CPU/ABI to ARM.
If that option is not available, you may need to change the target API of the Virtual Device, or download an
ARM system image for the API version you want using the Android SDK
manager.
I was able to resolve my problem of the missing acceleration with the following workflow on Windows 10, Lenovo, Intel Core i7 CPU:
Changed to the HAXM setup folder:
C:\Users\\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager
Opened a cmd (MS-DOS) shell Window and executed haxm_check.exe to check whether CPU supports HAXM - it outputs in my case:
VT support -- yes
NX support -- yes
So, I knew this most be a setup problem. So, I started the setup program intelhaxm-android.exe in the same folder with Admin account and removed the installed components. After that, I've attempted to re-install with the same setup program and got this output:
So, I went into the CPU section of the BIOS and turned on acceleration/Virtualization - went back to the setup program and re-ran it, this time I was pleased to see this output:
After that, I restarted Android Studio and used Tools>AVD Manager to define a new image for an emulator. I was then able to see the emulator starting up succesfully by clicking the play button in the list of emulators in the AVD Manager's list:
or by
- Opening a sample project that compiles OK
- using File > Sync Project with Gradle Files (to build all artifacts)
- Select the app item in the Android (TW) and click Run > Run 'app'
- Select the previously configured Emaulator showed me this :-)
Hope this helps to troubleshoot others with their problems that are really caused by a bad setup implementation since the missing acceleration option was silently swallowed by the Android Studio setup program ... :-(
Simple Solution :
Open Android SDK manager, on top side you can see the "Android SDK Location" go to that location and follow this path
\extras\intel\Hardware_Accelerated_Execution_Manager
here you will get "intelhaxm-android.exe" install this setup.
If you are using an AMD CPU, AMD Virtualization (CPUs such as Ryzen) is now officially supported. Make sure you have virtualization switched on in the BIOS.
In "Turn Windows Features On or Off" (you can find it through Windows Search), you'll need to enable
Windows Hypervisor Platform on Windows 10 17134.1 (1803) April 2018 update or newer (commonly not mentioned in articles)
Hyper-V
Once you restart and start up the emulator (an x86 build), it should start booting up without the mentioned error.
On Mac, the Android SDK gets installed at: /Users/username/Library/Android/sdk/, therefore, you will need to run the script as sudo, as follows:
sudo sh /Users/username/Library/Android/sdk/extras/intel/Hardware_Accelerated_Execution_Manager/silent_install.sh
If all goes well, the script prints the message: "Silent installation Pass!"
Then, restart Android Studio and run your app with the desired AVD.
I wasted too much time on this, I find that the AVAST is the issue!!!
If you have AVAST installed in you system, you have to:
Go to settings tab --> troubleshooting, then you should UNCHECK the
"enable hardware-assisted virtualization"
Restart your PC, the install the intelhaxm-android.exe if it is not installed.
You can find it:
C:\Users\{YOURUSERNAME}\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager
Right click on your my computer icon and the CPU will be listed on the properties page. Or open device manager and look at the CPU.
It must be an Intel processor that supports VT and NX bit (XD) - you can check your CPU # at http://ark.intel.com
Also make sure hyperV off bcdedit /set hypervisorlaunchtype off
XD bit is on bcdedit /set nx AlwaysOn
Use the installer from https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
If you're using Avast, disable "Enable hardware-assisted virtualization" under: Settings > Troubleshooting. Restart the PC and try to run the HAXM installation again
If you recently installed Docker on Windows OS, you need to turn off the Hyper-V feature. See the top answer of VT Not Supported when Installing HAXM
I solved this Issue by enabling virtualization technology from system Settings.
Just followed these steps
Restart my Computer
Continuously press Esc and then F10 to enter BIOS setup
configuration
Check Virtualization technology
Your system settings may be changed According to your Computer. You can google (how to enable virtualizatino for YOUR_PC_NAME).
I hope it helps.
A more detailed answer for dummies like me:
Open the SDK manager
Select the SDK Tools tab.
Download – Make sure that intel x86 Emulator Accelerator (HAXM) is downloaded.
Install – Now that HAXM is downloaded, make sure it is installed. In the SDK window it will show you where the SDK is located on your computer:
Click/tap 3 times quickly to highlight this text and copy the folder location. Open the file explorer and paste in the file location. From here you can search “hax” to find the folder location for HAXM stuff. Once a file comes up in the search results, right click and select “open file location”. For me the location was C:\Users\Datu1\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager . Find the file intelhaxm-android.exe and open/run it.
Follow the instructions when it runs. You may wish to run haxm_check as an administrator (it’s in this same folder), but it may or may not work for you. The surefire way to tell if you can run hardware acceleration and if it’s enabled is to go to your computer’s bios settings from the startup menu.
BIOS settings – Make sure hardware acceleration is enabled in your BIOS settings. The way to do this may vary a bit from system to system. You may need to press f10 or esc on startup. But with most (updated) Windows 10 computers you can access the BIOS settings by doing the following: type “advanced startup” in the Windows search bar; click on “change advanced startup uptions:” when it comes up. Click “Restart now”. After your computer restarts click on Troubleshoot.
Click advanced options >firmware settings, then restart to change EUFI firmware settings. Wait for the restart then select the menu option for bios settings. With Intel processors the steps will be as follows or similar:
Press the right arrow to go to the Configuration tab. Arrow down to Intel Virtual/Virtualizaion Technology and turn it on (should say Enabled).
Exit and save changes.
If Virtual Technology was previously disabled in your bios settings You will need to run the intelhaxm-android.exe file now to install haxm.
Try restarting Android Studio and running your emulator again. If it’s still not working, restart your computer and try again, it should work.
NOTE: if you have Windows Hyper-V turned on this will cause you to not be able to run haxm. If you are having an issue with Hyper-V, make sure it is turned off in your settings: search in the Windows bar for “hyper”; the search result should take you to “Turn Windows features on or off”. Then make sure all the Hyper-V boxes are unchecked.
One more possible reason: you installed HAXM and then updated BIOS settings by disabling virtualization. Or, updated BIOS version. Please check BIOS settings again, and be sure virtualization enabled.
I had the same issue. In my case I found two issues causing the problem
I had Hyper-V running, I think if any Virtualization programs running you need to uninstall
I was running under Standard Account / Not Administrator
Open Android SDK manager,"intelhaxm-86 emulator" install that
Windows Users Only
This is a bit late but just figured that some answers are to go to the bios settings but for me, I was able to resolve this by just disabling the hyper-v feature. We do this by following these steps:
You should install the intel hardware acceleration first on sdk manager than you can start to create your virtual device on AVD manager
Enable virtualization Technology
This is worked in my case
Restart Computer
Continuously press Esc and then F10 to enter BIOS setup
configuration
Check Virtualization technology
My PC is HP Zbook
1. Boot the unit to BIOS (Reboot the unit and keep tapping on F10).
Navigate to Advanced>Device or System Configuration> Click on the check box Virtualization Technology (VTx) and Virtualization Technology for Directed I/O (VTd)
Save changes and Exit.
For me the following solution worked:
1] Going to BIOS setting and enabling Virtualization.
This steps worked on Mint 17.2 Rafaela:
Open a terminal and input this: sudo apt-get install qemu-kvm
Restart your pc and enable virtualization technology on your BIOS setup
In terminal again, insert this: sudo kvm-ok
In the android sdk manager it says that it has hardware accelerator already installed but I think it is only downloaded not installed.I just manually installed the intelhaxm-android.exe and it worked for me.
plus I had docker installed , there were some answers to disable Hyper-V features, therefore I did that too, but not sure whether it helped or not.
I experienced the same issue, but after turning off Hyper-V and enabling VT-x on my BIOS I still couldn't install the intelhaxm-android.exe program.
To fix my issue I had to turn off Windows defender Memory integrity
check here for steps -> https://github.com/intel/haxm/issues/105
I had the same issue even when hardware acceleration installed. My solutions was uninstalling and reinstalling it using SDK Manager. Make sure you restart the Android studio after then.
I already had HAXM installed, but it was an older version. Then I updated from SDK manager, then emulator worked!
This answer works for latest update on Windows 10 version 1709. Not tried with other version. But i hope it'll work.
I also ran into similar issue in my windows 10 system. I disabled Hyper-V and I tried all the answers posted here. But after that also i faced the same issue. So after lot of try, made it work using an documentation available in haxm manual. The document menntioned to use a tool named Device Guard and Credential Guard hardware readiness tool provided by Microsoft to disable Hyper-V along with some other features(Remember not only Hyper-V. So little cautios) completely. Follow the below steps to do that.
Download the latest version of the tool from here.
Unzip.
Open an elevated (i.e. Run as administrator) Command Prompt and run the below command by changing the extrated path and the respective version number.
#powershell -ExecutionPolicy RemoteSigned -Command "X:\path\to\dgreadiness_v3.6\DG_Readiness_Tool_v3.6.ps1 -Disable"
Reboot.
Then if you try to install intel haxm, it'll work.
In case of latest update check the docs available in official intel haxm development link.
Hope it helps someone.
For those who still have problems with this, you can try using an alternative Android emulator such as Genymotion.
I'm using Ryzen 5 processor with latest Windows 10 update installed (1809), but still can't install HAXM. So, what I did to resolve this was:
Enable Hardware Virtualization in BIOS settings
Enable Hypervisor Platform in Windows Feature
Install Genymotion with Virtual Box -- select for personal use
Install Genymotion Android Studio plugin -- find this in Android Studio plugins settings
You're good to go from here.

Intel HAXM is required to run this AVD

I have installed Android Studio 3.3.1 and everything worked perfectly until I closed it. When I try to open a run again my project it says:
Intel HAXM is required to run this AVD
Unknown error, What should I do?
In my case, I installed software which is required to enable Hyper-V. If you also face it, check it.
On Window (I mean I config on Window, not Ubuntu or MacOsX), it's in "Turn Windows feature on or off". Uncheck Hyper-V and restart your computer.
Open File Explorer,
Go to C:\Users\ YourUserName \AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager
Double click on haxm-7.6.5-setup File and Install
This worked for me
When Android Studio is open, click Configure on lower right corner, then select SDK Manager from the list. Head over to SDK Tools
Look for Intel HAXM and make sure it's checked. If not, check the box and click apply.
And you are good to go.
Make sure it is installed along with the Android Emulator. Then it should work.
Try install it manually. You will find the .exe setup here ~\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager
I tried many times with android studio many times but the worked well is
This didn't work for me. Even after installing with this step, Android Studio kept telling me HAXM wasn't installed. After doing this step though, I was able to find "haxm-7.6.5-setup.exe" in "~\AppData\Local\Android\Sdk\extras\intel\Hardware_Accelerated_Execution_Manager" and running that setup file fixed the issue.
Enabling
Hyper-V
or
Windows Hypervisor Platform
fixed the problem for me
Enable Windows feature Hyper-V in Program and Features You problem will get solved
my case, just add this configuration

I can't seem to run my AVD on Android Studio

I'm getting an error while running my AVD on Android Studio. Below screenshot is the error.
http://i.gyazo.com/cc1d9497b3f504196fe4f78fc6a2932e.png
After doing some Googling, I understand that the HAXM installer needs to be installed from the SDK Manager. I did that (screenshot below)
http://i.gyazo.com/060b1108091d497da3e9e312ec7aedcc.png
Doing some further research, it seems like I need to execute an .exe file from the Android Studio folder. However, the SDK folder seems to be missing for me.
I'm stuck in a loop here, I'm not sure what to do. Is anyone able to assist with this? I enable virtualization in my BIOS but it didn't do the trick. My processor is also supported according to the intel website. Thank you.
Use Genymotion as your emulator. Fast and reliable. The solution below is from a possible duplicate question to yours.
After you download it and make sure you run the setup located in: {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe
Note: in Android Studio, the command "intelhaxm.exe" has been changed to "intelhaxm-android.exe"
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
If that doesn't work try the ARM virtual device instead because your PC might not be intel HAXM compatible(mine wasn't). There might be some other options too for other types of virtual devices you can use. I recommend you try the ARM one if it doesn't work.

I can't install intel HAXM

I installed Android Studio and I had no problems with that. However, when I tried to run the emulator, it said that Intel HAXM was not installed.
So I found the installer, ran it, and it even though it said my laptop supports it, that it was not enabled. I went, enabled the Intel Virtualization Technology (VT-x), but I still got the same message.
I hear something about Hyper-V needs to be disabled, but when I go to Turn Windows features on/off, I cannot find it on that list.
Can someone help me with this?
Alright, so I did everything I could possibly find online, and nothing worked.
So I went to the Intel website, and I downloaded the HAXM installer that they provide (instead of using the one downloaded through Android Studio).
The installation actually went through with this installer and it was installed successfully. Then I open Android Studio, and the emulator finally loaded!
So, for anyone else having this problem, just download the installer directly from the Intel website.
Here's the link:
https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
I think your problem was that you thought that the installer in Android SDK Manager would actually INSTALL the Intel HAXM. But the hook is that it WILL NOT INSTALL it. What it does is extracts the files needed for (really) install Intel HAXM.
I found that out when I got the same problem and then read this in Intel's web page:
Downloading through Android* SDK Manager
... Other steps ...
5) The SDK Manager will download the installer to the "extras" directory, under the main SDK directory. Even though the SDK manager says "Installed" it actually means that the Intel HAXM executable was downloaded. You will still need to run the installer from the "extras" directory to get it installed.
6) Run the installer inside the /sdk/extras/intel/Hardware_Accelerated_Execution_Manager/ directory and follow the installation instructions for your platform.
So all I needed to do was go to folder where my Android SDK was, opened that folder (sdk_location/sdk/extras/intel/Hardware_Accelerated_Execution_Manager) and run the silent_install.bat.
After this when I launched my emulator, it said this:
HAXM is working and emulator runs fast virt mode
and everything works as should!
You can also use some useful parameters with silent_install.bat:
-v Print HAXM version
-c Check VT/NX capability of the platform
-h Print usage
Make sure the emulator is not running while installing HAXM. Otherwise, there will be an error which you only see when using the standalone installer but not within Android Studio or IntelliJ Idea.
dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
or
bcdedit /set hypervisorlaunchtype off
Other things you may need to do:
If using Avast? disable Enable hardware-assisted virtualization under: Settings > Troubleshooting
bcdedit /set nx AlwaysOn
sfc /scannow and reboot
Important: After anything you try, Restart the PC and try to run the HAXM installation again
I faced this problem.I got the solution too.It will work.
Step 1: Go to your BIOS settings and check that INTERNET VIRTUAL TECHNOLOGY is Enabled or Disabled.
And make sure HYPER V is disabled.
To disable it :
a)Go to Control Panel
b)Click on Programs(Uninstall a Program)
c)Then click on Turn Windows features on or off , then look for HYPER-V and untick it. And Restart.
If disabled then enable it.
Step 2: Try to install Intel HAXM now and restart. If It shows same problem again.
go to Step 3.
Step 3: You have to disable Digitally Signed Enforcement. To disable it permanently you have to make sure that Secure Boot option is disabled in your system.
How to check ?
Answer is given in the following link. I found it in Internet.[Thanks whoever made that blog]
link : http://www.windowspasswordsrecovery.com/win8-tips/how-to-disable-uefi-secure-boot-in-windows-8-1-8.html
Step 4: Now restart again.
To disable driver signature enforcement permanently in Windows 10, you need to do the following:
1.Open an elevated command prompt instance.
2.Type/paste the following text:
`bcdedit.exe /set nointegritychecks on`
or Windows 10
`bcedit.exe -set loadoptions DISABLE_INTEGRITY_CHECKS`
Windows 10 disable driver signature enforcement
Restart Windows 10.
*If you somehow want to enable it again:
1.Type/paste the following text:
`bcdedit.exe /set nointegritychecks off`
<==||=====>For me who have an AMD Processor:<=====||==>
1. Click on the windows button in the bottom left hand corner
2. Look for Enable/Disable Windows features
( Just type : "windows features", it will appear)
3. And contrary to the other posts here, enable Hyper-V and Windows Hypervisor Platform
Thanks.
I probably tried all the solutions mentioned above but all in vain.
To summarize, I did:
I enable the virtualization going to BIOS setting.
Uncheck Hyper-V option by going to Turn Windows features on or off.
Download HAXM directly from the website https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager and install it.
Uninstall and reinstall Android Studio.
Copy the HAXM from my another system where HAXM was working fine, from the location C:\Users\UserName\AppData\Local\Android\Sdk\extras\intel
Nothing worked for me.
What worked for me:
I noticed the issue "unable to run mksdcard sdk tool" when I try to download SDK platform.So after some research, I found some SDK tools such as mksdcard.exe require Microsoft Visual C++ runtime 2015-2019. So based on my system type,(for me it was x64) I downloaded the latest Microsoft Visual C++ Redistributable for Visual Studio 2019 from the link https://visualstudio.microsoft.com/downloads/.
Detailed answer given here:
Android Studio install failed - unable to run mksdcard sdk tool in Windows
After downloading and installing Visual C++ ,the error "unable to run mksdcard sdk tool" was fixed, also when I try to install HAXM after this, it was install successfully. Everything was fine. I was also able to create AVD now(which was also a problem when HAXM was not install).
How I solved this problem:
Step-1: Downloaded the Android Studio and installed it. But it failed to install HAXM.
Step-2: Then ran the AVD. Then it prompts to create a virtual device. But it also failed.
Step-3: I downloaded the latest HAXM from intel's GitHub source. From here github.com/intel/haxm/releases/latest
Step-4: Then installed HAXM manually. Documentation is here: Installing Standalone Intel HAXM on Windows
Step-5: Then again tried to create a virtual device of Pie. It successfully created it.
But if your Step-5 fails anyhow, there may another solution: When downloading the .zip file, it will show you the SDK path and also the source path of the .zip file. So you can manually download the .zip and can place it to the SDK path folder. Then again can try to create the virtual device.
This is what worked for me -
Enable Virtualiztion through BIOS (F10-> System Configuration -> Virtualiztion Technology)
Depending on your hardware, firmware and BIOS configuration utility the option to enable may be named something else or steps may differ.
There is a free software called "Piriform Speccy" which gives information about your machine, which among other things can also be used to check if virtualization is enabled or not on your machine (see screen cap).
Download HAXM intaller from Intel site. https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
If using avast, disable "Enable hardware-assisted virtualization" under: Settings > Troubleshooting by unchecking.
Do a hard boot (power button) just to be safe.
Option 1: Go to Android SDK Folder --> Extra --> Intel and double click on HAXM installer and install it manually.
Option 2: If you do not have latest version of HAXM then you can open sdk manager in android studio and download it.
Option 3: Download HAXM intaller from Intel site. https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
Download HAXM form this link download HAXM .Unzip it and you will see a msi installer file and install it.Then you will see no longer HAXM is not installed while creating your emulator.
Install Intel HAXM from Github.
It requires you to Disable the Hyper-V technology. To disable it follow instructions from Microsoft website.
You are Good To Go Now.
For HP Ultra book with windows 7 enabling hyper-v through bios worked for intel haxm problem.
For enabling hyper-v:-
F10-> Bios advanced setting-> device configurations->enable Hyper-V then install.
It will work.
I've figured out.
Try to disable Security Boot Control in BIOS options: http://remontka.pro/secure-boot-disable/ (sorry for russian examples)
Or try to start system without Digital signature (only for one loading).
I had had many unlucky attempts with 'HAXM installer, before I disabled this line.
At the beginning I thought that's because Windows 10 Home was installed, and there're many limits.
If Nothing Helps then it means Device Guard and Credential Guard are using the virtualization. I had to disable them by downloading and running the following script from microsoft site.
DG_Readiness_Tool_v3.5.ps1 -Disable
You may need to run this first if it doesn't allow to run the command
Set-ExecutionPolicy Unrestricted
Once you do it, you need to restart and confirm disable both when asked just before boot.
hope it helps!
Note: this is not an answer because I could not find a solution. But I think the information may be useful for others (and it wouldn't be practical as a comment).
I have tried all of the steps detailed in the various docs but I could not get Android Emulator to work on my AMD Ryzen 7 :(
Most answers work only for Intel CPUs.
If you have an AMD CPU (like me, an AMD Ryzen 7) you need to know about some restrictions and you have to use WHPX instead of HAXM.
I found this on MS's site: Because the Android emulator currently supports AMD hardware acceleration only on Linux, hardware acceleration is not available for AMD-based computers running Windows.
Fortunatelly there is a way to make it work but configuring hardware acceleration for an AMD CPU is a bit more complex:
Requirements and recommendations:
- AMD CPU recommendation: AMD Ryzen CPU
- Android Studio 3.2 Beta 1 or higher
- Android Emulator version 27.3.8 or higher
- Windows 10 with April 2018 Update or higher
To use WHPX acceleration on Windows, you must enable the Windows
Hypervisor Platform option in the Turn Windows features on or off
dialog box. For changes to this option to take effect, restart your
computer.
Additionally, the following changes must be made in the BIOS settings:
- AMD CPU: Virtualization or SVM must be enabled.
Note that there are further restrictions as well:
You can't run a VM-accelerated emulator inside another VM, such as a VM hosted by VirtualBox, VMWare, or Docker. You must run the emulator
directly on your system hardware.
You can't run software that uses another virtualization technology at the same time that you run the accelerated emulator. For example,
VirtualBox, VMWare, and Docker currently use a different
virtualization technology, so you can't run them at the same time as
the accelerated emulator.
Some more info: Android Emulator - AMD Processor & Hyper-V Support
This recommendation did not help either:
Please note: More recent versions of the emulator (27.2.8, 27.3.0, or
later), require an emulator flag while the feature is in the preview.
To do this, create or edit the file
C:\Users\.android\advancedFeatures.ini and add the
line “WindowsHypervisorPlatform = on”, or start the emulator from the
command line with “-feature WindowsHypervisorPlatform”.
For me who has an AMD Processor:
Click on the windows button in the bottom left hand corner
Look for Enable/Disable Windows features (just type : "windows features", it will appear)
And contrary to the other posts here, enable Hyper-V and Windows Hypervisor Platform
THE SHORT ANSWER:
Disable Microsoft Defender Application Guard
None of the answers helped me. Also, most of the answers here were addressed elsewhere online. I spent hours trying to solve this problem. After much hesitation, I decided to go on a hunch. I was suspicious about msinfo32.exe showing a Hypervisor was running, but it would not provide additional detail. I went into the services manager. I saw an instance of a hypervisor service was running, I went to disable it. Before disabling, I was asked if I am sure and was informed that a couple of other services would stop. One of the other services was Microsoft Defender Application Guard for Internet Explorer. I disabled this and FINALLY after hours of research on this topic was able to install Intel HAXM for Android Studio on my i5-4430 with Z87 chipset.
It was not enough to merely disable Hyper V and Windows Hypervisor Platform.
It should prompt you to install HAXM when creating a new virtual device:
Tools > Android > AVD Manager
It will install through Android Studio automatically.
If you are using windows then edit your AVD config to ARMEABI image instead of X86, Also using ARM will give better performance. HAXM installer is required only if you use X86 image.
I think that you would install Android SDK files not in (your PC)\Appdata\Local\Android\sdk (default Path). Also there was nothing when you double click 'intelhaxm-android.exe' file.
If it was, Browse (your PC)\Appdata\Local\Temp\intel\HAXM\6.0.3(yyyy-mm-dd_hh_mm_ss) (or silent), then you must see 'hax64' (or hax) file, and simply invoke this file.
Enter with Administrator user.
First, you must enable it
http://www.ghacks.net/2014/11/12/how-to-enable-the-hidden-windows-10-administrator-account/
Install it from C:\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-andoid.exe
And login with your user. It work for me.
Good description here: https://developer.android.com/studio/run/emulator-acceleration.html
You may check current HAXM status with following command:
sc query intelhaxm
If you use Windows 10 Home, all issues about Hyper-V is irrelevant for you as it is not supported (Pro is required) and you will not have conflicts :)
Remark: trying to update HAXM to latest version incidentally removed it, but then can't update with SDK manager, as it shows that latest version 6.1.1 is unsupported for Windows (seems configuration is broken, found 6.1.1 for Mac and 6.0.6 for Windows only inside)
So would recommend manually download HAXM and install as described:
copy to sdk_location/sdk/extras/intel/Hardware_Accelerated_Execution_Manager and run the silent_install.bat
After some trials, knowing that I had all the factors stated in this thread and other threads properly configured, I still got this error in Android Studio.
Even after installing externally, it seems Android Studio could not discover that HAXM is already installed, unless it gets to install it itself.
As a solution that worked for me, under User\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager which android has downloaded when attempting to install HAXM, click the installer and uninstall the software, then re-try from Android Studio to install it, it should work now.
I tried the following:
1. Directly installed HAXM from Intel
2. Tried multiple times to un-install and re-install Android Studio with same default paths in C drive.
3. Un-install various other software including QEMU which also uses HAXM, which might have been interfering with Android recognizing HAXM.
Solution was:
1. To un-install Android Studio and install it on D drive including the SDK. This solved the problem.
I installed Android Chipmunk 2021.2.1 and tried to install HAXM through the SDK manager. It failed first because I was running an emulator. However, one other thing I noticed is that when you first run the installer, it creates the folder for the HAXM install. Then, when the memory allocation dialog pops up, it tries to create the folder again. Since the folder already exists, it appends a "2" on the end of a new one. What I did is watched the install folder and when it creates the folder the first time I deleted it before continuing. I then continued with the install and it created the folder again and completed successfully. It seems there is a bug in the new SDK installer for HAXM
If you are using windows, Hyper-V works via AMD not HAXM.
Try the following: on Android, Click SDK Manager ==>SDK Platforms ==> Show Packages ==>ARM EABI v7a Systems Image.
After downloading the systems image, go to the AVD Manager ==> Create Virtual Device ==> choose device (e.g. 5.4 FWVGA") ==> Marshmallow armeabi v7a Android6 with Google APIs ==> Change the AVD name to anything (eg. myfirst)==> click finish.
If you have all gone through this and it still doesn't work and "systeminfo.exe" shows hypervisor is detected then disable Containers in Windows Features. After that all went well.
None of the suggestions worked on their own.
Here is what worked for me:
chmod -R 777 $ANDROID_HOME
Then try to install it via android studio -> sdk manager. If its not there, reinstall latest version of Android studio over your current installation. HAXM will show up in SDK manager after that.
If you do not have ANDROID_HOME set, then YOU are part of the problem.
The value of it can be found inside Android Studio project structure. On MAC, just type CMD ; and look at SDK Location on left.
Simply run chmod -R 775

How do I fix HAX carnel module issue in Android studio?

I have successfully installed Android Studio from their official homepage.
But the problem is I can't strat my emulator. Once I run the program, it shows the following error in my command window.
"C:\Users\Jabir Al Fatah\AppData\Local\Android\sdk1\tools\emulator.exe" -avd Nexus_5_API_21 -netspeed full -netdelay none
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!
Now, I have uninstalled the Studio at least 10 times and installed them again. I have searched online about all the possible solution. I have HAXM installer installed properly in my sdk.
I have enabled the virtualization in BIOS. But none of those really help.
I wanted to exucute the intelhaxm.exe file. But the problem is I don't find any sdk folder in my drive. I can see the specified derictory for sdk while installing the studio, but in reality that folder is never created and never exist in my drive.
Please help me to find a solution.
Windows 8. Android Studio.
Make sure if virtualization is enable : go through those steps provided below.
Goto setting -> change pc settings-> general->then see on right side
by scrolling the frame down-> you will see under advance start up
restart now button press it->then choose an option window will
open->choose troubleshoot->under troubleshoot choose Advance
option->then under Advance options choose UEFI Firmware option->then
press restart->press f10 for BIOS->see the menubar where you will
find system configuration menu inside it you will see the
virtualization Technology "enable" it ->now go for exit saving
changes in exit on menu bar..
C:\Users\username\AppData\Local\Android\sdk\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm-android.exe
(in username : please enter valid user name)
install it and restart your Android Studio.
if you make few changes on above process it is same for win 7 and also same for eclipse have fun!!
I had the same problem. You might wanna read this post:
Error in launching AVD with AMD processor
In particular, after installing HAXM through the SDK manager, which in itself didn't fix the problem, try to run the intelhaxm-android.exe. This showed that I had some hardware virtualization problems (like the error mentioned in the other post).
I'm switching to the Genymotion thingy.
Cheers, B.
Eventually, I found a different solution, as the Genymotion wasn't the right thing for me.
In the AVD manager, I changed the processor type of the AVD to ARM and this doesn't need the HAXM thing at all. This surely doesn't make stuff very fast, but it got me a working emulator. Once it's running, it's not that bad.
Hope this helps.
Cheers!

Categories

Resources