Android Emulator Error missing WinHvPlatform.dll - android

today, suddendly, all my Android Emulators (on Win10 / IntelliJ IDEA),
started complaining about a missing library.
When i launch any emulator, during loading, i read on the console log:
Emulator: Could not load library 'WinHvPlatform.dll'
then, the emulator starts and seems to run OK.
But... does anyone have an idea what it could be the cause ?
What is that library ?

It's because Microsoft has worked with Google to allow using Hyper-V instead of Intel HAXM as hypervisor. See these articles:
https://blogs.msdn.microsoft.com/visualstudio/2018/05/08/hyper-v-android-emulator-support/
https://learn.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration
The Windows Hypervisor Platform was introduced in the Windows 10 April
2018 Update and enables third-party virtualization stacks to utilize
the Windows Hypervisor for hardware acceleration. If you are using
Hyper-V, this stack replaces Intel HAXM as the hypervisor for the
Android emulator.
If you run the ANDROID_SDK\emulator\emulator.exe -avd YOURAVD -verbose you might get this output:
emulator: Checking whether Windows Hypervisor Platform (WHPX) is available.
emulator: Could not load library WinHvPlatform.dll
emulator: WHPX is either not available or not installed.
emulator: CPU Acceleration: DISABLED
emulator: CPU Acceleration status: HAXM is not installed on this machine
emulator: ERROR: x86_64 emulation currently requires hardware acceleration!
You could follow the instructions in the above posts to turn off Windows Hypervisor for Google's Android emulator in %USERPROFILE%\.android\advancedFeatures.ini by setting:
WindowsHypervisorPlatform=off

Hyper-V should be disabled for the Android emulators, and use Intel HAXM instead (if your processor supports it). Also make sure you are using the updated Android SDK 27 tools and emulators, they can be updated as explained in this article.

Related

Error in Android Studio: "ERROR: x86 emulation currently requires hardware acceleration!"

I started recently using Android Studio and am stuck with this error message:
x86 emulation currently requires hardware acceleration!
Please ensure Intel HAXM is properly installed and usable.
CPU acceleration status: HAX kernel module is not installed!
Any idea how to resolve it?
I did some search on the issue am having and I think it has to do with changing my ANDROID_SDK_ROOT environment variable to the original value, but no clue how to do so.
Not resolveable if you have an AMD processor on Windows, at least as far as I know.
If you have an Intel processor, enable the virtual extensions in your bios (called VT, if available).
If you are on windows also install HAXM via the Android SDK manager. (also install it, the SDK manager will only download it: {SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe)
Disable hyper-V if you are on Windows 8 or above using: dism.exe /Online /Disable-Feature:Microsoft-Hyper-V
Genymotion is an alternative for AMD users.
Possible duplicate of Error in launching AVD with AMD processor

Error in Launching AVD on Windows 7 in Android SDK 23

I have Windows 7(Ultimate edition) installed in my Dell Inspiron laptop with an Intel i5 processor. I have recently installed the latest Android SDK(SDK 23, Android 6.0) and it got successfully installed as well. Now when I launch AVD, I get the following error message:
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 the problem is, I have already enabled Virtualization from the BIOS and same verified from Intel Processor Identification Utility.
I navigated to my android sdk ...\extras\intel\Hardware_Accelerated_Execution_Manager and double clicked on intelhaxm-android.exe.
I get the following error:
How to remove this error? What is it that could be causing the error?
Had Exact same issue u need to go to bios setting by reboot and enable VT option. Once done install intel driver for HAXM, Manually google, download and install it.

AVD manager in Android Studio stopped working

I recently installed Android Studio, and could successfully use AVD Manager, at beggining. But suddenly it stopped working due to 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!
I have tried to install & run HAXM manually, but problem is that I have Windows 7 Home Premium and don´t have Hyper-V option. Reasonably, I cant install HAXM!
Whether you have VT is a function of the BIOS and processor. You don't have to have Windows hypervisor to use Virtualization, in fact you have to turn hypervisor off on systems that have it. Check your BIOS and download HAXM from - https://software.intel.com/en-us/android/articles/intel-hardware-accelerated-execution-manager
Also turn off Avast is you're using it for antivirus

Couldn't Run the Emulator on Android Studio

I couldn't run emulator on Android studio.
It says,
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 already installed intel HAX and also enabled Hyper V from BIOS
I'm using Windows 8.1 Pro
Check in Android SDK manager if the Intel x86 packages are properly installed.
Did you run
{SDK_FOLDER}\extras\intel\Hardware_Accelerated_Execution_Manager\intelhaxm.exe ?
Try closing and opening your android studio so that android studio can detect installed intel HAXM.
Check whether you have the right version or of intel HAXM compatible to your android sdk. Also check whether you have installed 32 bit intel HAXM or 64 bit, as you required 32 bit.
More importantly, enable hardware virtualization technology extensions in BIOS.
It can be found under ‘Advanced Chipset settings’ in AWARD BIOS. Normally these vt-x/amd-v extension settings will be available in advanced settings in most of the motherboards.
After you have changed the settings to disable or enable, it’s recommended to shutdown the computer for minimum 10 seconds and restart it (Cold Restart) to take effect. Latest motherboards automatically detect these type of changes and do the cold restart. Whenever I change VT setting in my motherboard, it delays the restart automatically.
You can use Genymotion instead of built-in emulator, it's much faster and has a lot of nice features.
Just found the solution
Goto Control Panel and in windows and feature untick all Hyper-V related content.
Then restart the machine and enable Hyper-V and install intel HAX "intelhaxm.exe" inside the AppData->Local->Temp folder in C Particition in Windows

Error by running the app in emulatoor with AndroidStudio

I have Winows 7 pro with an AMD processor. When I run app with emulator from AndroidStudio, I get:
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!
I found this, but when I run dism.exe /Online /Disable-Feature:Microsoft-Hyper-V, I get error
Funktion "Microsoft-Hyper-V" is unknown
I also not have "Virtualization Technology" in BIOS.
How can I use AndroidStudio with Windows 7 with AMD.
Robert
According to the documentation:
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)
Hence, if the documentation is correct, you will not be able to use the x86 emulator on your AMD CPU on Windows 7.
Your options are:
Use the ARM emulator (slow but works "out of the box")
Try to follow the instructions for setting up x86 support anyway, and see if the docs perhaps are out of date
Try a third-party emulator, like Genymotion, and see if it supports AMD better
You have to install the intel HAXM for the accleration. you have to go to your sdk. then follow the steps:
> Go to sdk installed directory
>extras
>intel
>Hardware_Accelerated_Execution_Manager/
install here the intelhaxm-android, it will fix your problem
if its not helpful then you should install this and this. This is 100 % faster or you can read more about virtualization on AMD on this Link AMD Virtualization problem

Categories

Resources