android-emulator-hypervisor-driver icon indicating copy to clipboard operation
android-emulator-hypervisor-driver copied to clipboard

Android Emulator Hypervisor Driver for AMD Processors installation failed.

Open Sourav577 opened this issue 5 years ago • 63 comments

When i am trying to install Android Emulator Hypervisor driver for AMD Processor its says installation failed. please help

Sourav577 avatar Jun 07 '20 03:06 Sourav577

Any details? Or screenshot?

Taogle2018 avatar Jun 08 '20 07:06 Taogle2018

Same issue with:

Android Studio 4.0 Build #AI-193.6911.18.40.6514223, built on May 20, 2020 Runtime version: 1.8.0_242-release-1644-b01 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 10 10.0 GC: ParNew, ConcurrentMarkSweep Memory: 1237M Cores: 8 Registry: ide.new.welcome.screen.force=true

image

EDIT: Fixed by enabling Virtualization Technology in BIOS.

jrojas25 avatar Jun 09 '20 00:06 jrojas25

Sorry, I thought you were the original reporter and closed the issue. Let me wait for the original author's comments.

Taogle2018 avatar Jun 09 '20 00:06 Taogle2018

where is simple "silent_install.bat" file ????

spacesofttechnologies avatar Jun 15 '20 08:06 spacesofttechnologies

Well its just says that i need a intel processor for that for amd i have to visit git hub thats all.

On Mon, 8 Jun, 2020, 1:09 PM Haitao Shan, [email protected] wrote:

Any details? Or screenshot?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors/issues/17#issuecomment-640425289, or unsubscribe https://github.com/notifications/unsubscribe-auth/APYKP4PGEVAGVLPTGUGG4ODRVSITJANCNFSM4NWV4OTA .

Sourav577 avatar Jun 15 '20 11:06 Sourav577

That's weird. You have AMD processor right? Android Studio 3.6 might have messy error message. 4.0 is supposed to give correct message. Again, can you post a screenshot so that I can investigate further? And your processor, Android Studio version, Windows version.

Taogle2018 avatar Jun 16 '20 06:06 Taogle2018

I too am missing the silent_install.bat file. I went to the code page. clicked "clone or download" then clicked "download Zip" I extracted the zip and in the README.md it says to use the Silent_installer.bat, but it doesn't exist

EDIT: I discovered I didn't need to do this, I just had to enable virtualization on my pc. I could then just use Android Studios to do it. I use an ASRock motherboard and I couldn't find it to enable for a while. because it is labeled as SVM which I didn't understand was the virtualization thing.

A very helpful video that showed me what I was doing wrong is right here https://youtu.be/JULTTn3TPnw

Also, an easy way to check if virtualization is enabled(on windows 10) is to open task manager, go to the performance tab, and click CPU. on the bottom of the window it should say virtualization: enabled/disabled.

Gwehyr avatar Jun 18 '20 11:06 Gwehyr

I got this to work by enabling virtualization in BIOS. I have a AMD Ryzen 5 CPU and a gigabyte motherboard.

  1. Restart your computer
  2. On the boot up image, quickly press f12 to enter bios (might be a different function key depending on your motherboard)
  3. Go to BIOS configurations (navigation is done with arrow keys enter key to go into or select, and esc to go back)
  4. Go to the M.T.I. tab (should be the default tab)
  5. Go into "Advanced Frequency Settings"
  6. Scroll to "SVM Mode"
    • You can also look for anything that says virtualization or VT-x if you dont see SVM
  7. Click, enter
  8. Highlight "enable" and click enter
  9. Click ESC to go back
  10. Scroll to the right to get to the save tab
  11. Highlight "Save and quit"
  12. Click enter
  13. Your computer will restart. Try to reinstall the SDK Tool, "Android Emulator Hypervisor Driver for AMD Processor (installer) through android studio

jaaywags avatar Jun 18 '20 22:06 jaaywags

I am getting this same issue, virtualization is already enabled. Any other ideas?

image

Duroxxigar avatar Jun 26 '20 02:06 Duroxxigar

I am getting this same issue, virtualization is already enabled. Any other ideas?

image

You have to make 2 things: -Activate Virtualization in bios -Desactivate Hyper-V and hypervisor platform in "activate/desactivate windows function" & run powershell as admin and copy :"Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V". Finally, reboot.

cerasasus avatar Jun 26 '20 17:06 cerasasus

@cerasasus Yup - all of that is already done.

Duroxxigar avatar Jun 26 '20 21:06 Duroxxigar

@cerasasus Yup - all of that is already done.

Type systeminfo in cmd and upload a screenshot. I had a problem where i enabled Hyper-v and disabled using "Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V" but still it was showing hyper-v status enabled. I entered another code which disabled the hyper v completely. Please upload a screenshot of systeminfo in cmd.

anilabhadatta avatar Jun 28 '20 06:06 anilabhadatta

@Duroxxigar @cerasasus In these cases, most likely you have Hyper-V enabled. You can use emulator with Hyper-V and WHPX and ignore this error. Or you can disable Hyper-V and try to install the driver again. Android Emulator works with and without Hyper-V. The driver is only needed when it works without Hyper-V.

Taogle2018 avatar Jun 29 '20 05:06 Taogle2018

I had the exact same error as @jrojas25 @cerasasus @Duroxxigar. I tried all the steps mentioned here, from enabling SVM mode in BIOS up to disabling Hyper-V, but I am still getting the same error.

Then I came across @Taogle2018 comments on #12 .

Quoting @Taogle2018:

This means on your system Hyper-V is turned on. Checking feature checkbox in "Turn on and off Windows features" is not reliable at all. Sometime it is enabled implicitly by other Microsoft features. However, I cannot tell you what it is. Known possibilities are "Windows Sandbox", "Virtual Machine Platform" (This is required to run WSL v2), "Credential Guard", "Core Isolation" (in Windows Defender options).

This gave me some sort of a clue, and I tried disabling Virtual Machine Platform and Windows Hypervisor Platform as well (see the highlighted labels on the image below).

image

I was able to install Android Emulator Hypervisor Driver after that. I re-enabled the two features after and rebooted one last time. At last, I can now use the emulator.

I will try to comment back as I gather more details on the possible reasons, I just finished my Android Studio setup an hour ago.

raymelon avatar Jun 29 '20 17:06 raymelon

@Duroxxigar I used these two commands to disable Hyper - V completely . I used Vmware to check if my hyper-v was completely disabled or not , i unchecked Hyper-V and Windows Hypervisor Platform but still Vmware was detecting hypervisor enabled . You can also use services.msc to check if hyper -v is completely disabled or not. Use these two commands of cmd to completely disable hyper-v. (restart pc after using these commands)

  1. Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor -All
  2. bcdedit /set hypervisorlaunchtype off Then install the AMD hypervisor , it will work without any issues. Use the latest stable build Android Studio 4.0 , It can automatically install Amd hypervisor driver through Sdk manager.

And also enable SVM mode in bios of motherboard to enable virtualisation in amd cpu's.

anilabhadatta avatar Jun 29 '20 22:06 anilabhadatta

check out this video: https://www.youtube.com/watch?v=drdncwC2NgQ Go to releases tab on this repository and download the latest hypervisor v1.4.0(auto install present in android studio 4.0 - no need to download separately if you have android studio 4.0) and follow the steps from video. NOTE : If you have laptop with AMD processor with NVIDIA dedicated gpu then go to nvidia control panel and add these two programs and select High performance NVIDIA processor. file location : C:\Users\anila\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64 files to be added : qemu-system-i386.exe and qemu-system-x86_64.exe This was required for me as i have Asus Tuf fx505DT and my android emulator was freezing on startup.

If you have AMD Desktop processor without integrated graphics and dedicated gpu , everything must work normally.

If you have Amd processor with integrated gpu and no dedicated gpu then i don't know how it will work. You may try running normally.

anilabhadatta avatar Jun 29 '20 22:06 anilabhadatta

I had the exact same error as @jrojas25 @cerasasus @Duroxxigar. I tried all the steps mentioned here, from enabling SVM mode in BIOS up to disabling Hyper-V, but I am still getting the same error.

Then I came across @Taogle2018 comments on #12 .

Quoting @Taogle2018:

This means on your system Hyper-V is turned on. Checking feature checkbox in "Turn on and off Windows features" is not reliable at all. Sometime it is enabled implicitly by other Microsoft features. However, I cannot tell you what it is. Known possibilities are "Windows Sandbox", "Virtual Machine Platform" (This is required to run WSL v2), "Credential Guard", "Core Isolation" (in Windows Defender options).

This gave me some sort of a clue, and I tried disabling Virtual Machine Platform and Windows Hypervisor Platform as well (see the highlighted labels on the image below).

image

I was able to install Android Emulator Hypervisor Driver after that. I re-enabled the two features after and rebooted one last time. At last, I can now use the emulator.

I will try to comment back as I gather more details on the possible reasons, I just finished my Android Studio setup an hour ago.

It's worked for me. I was also stuck at the same. Enabled everthing but can't install the Driver. But disabling Windows Hypervisor Platform works for me. Thanks Everyone.

adarshcodes avatar Jul 17 '20 13:07 adarshcodes

You have an Intel CPU. This driver is for AMD CPUs.

Taogle2018 avatar Jul 27 '20 22:07 Taogle2018

You have an Intel CPU. This driver is for AMD CPUs.

Exactly, as per the Screenshots, you have an Intel processor so you don't need to install Hypervisor for AMD.

adarshcodes avatar Jul 28 '20 08:07 adarshcodes

I am not able to install hypervisor drivers for amd processors. I enabled SVM and disabled hypervision platform still not able to install. 1 2 3 4

Ichigo27 avatar Aug 13 '20 16:08 Ichigo27

Screenshot of "emulator-check.exe hyper-v"?

Taogle2018 avatar Aug 13 '20 17:08 Taogle2018

Screenshot of "emulator-check.exe hyper-v"?

image

Ichigo27 avatar Aug 13 '20 17:08 Ichigo27

OK. Your case does seem special. What antivirus program are you using? Maybe it uses virtualization extension and blocks gvm.

Taogle2018 avatar Aug 13 '20 18:08 Taogle2018

OK. Your case does seem special. What antivirus program are you using? Maybe it uses virtualization extension and blocks gvm.

I am using avast premiere pro. I tried with disabling the antivirus still i am getting this error. Should I install hyper v and disable it and then try installing ?

Ichigo27 avatar Aug 13 '20 18:08 Ichigo27

I remember one of the user here had the same problem. The problem does not go away by disabling antivirus program. Another user pointed out that you had to go to Avast settings and disable its virtualization-based antivirus feature. I do not use Avast so I do not know exactly how. https://forum.avast.com/index.php?topic=198523.0 Maybe you can take a look at this?

Taogle2018 avatar Aug 13 '20 18:08 Taogle2018

I remember one of the user here had the same problem. The problem does not go away by disabling antivirus program. Another user pointed out that you had to go to Avast settings and disable its virtualization-based antivirus feature. I do not use Avast so I do not know exactly how. https://forum.avast.com/index.php?topic=198523.0 Maybe you can take a look at this?

Thanks. my problem got resolved by disabling virtualization-based antivirus feature.

Ichigo27 avatar Aug 13 '20 18:08 Ichigo27

I too am missing the silent_install.bat file. I went to the code page. clicked "clone or download" then clicked "download Zip" I extracted the zip and in the README.md it says to use the Silent_installer.bat, but it doesn't exist

EDIT: I discovered I didn't need to do this, I just had to enable virtualization on my pc. I could then just use Android Studios to do it. I use an ASRock motherboard and I couldn't find it to enable for a while. because it is labeled as SVM which I didn't understand was the virtualization thing.

A very helpful video that showed me what I was doing wrong is right here https://youtu.be/JULTTn3TPnw

Also, an easy way to check if virtualization is enabled(on windows 10) is to open task manager, go to the performance tab, and click CPU. on the bottom of the window it should say virtualization: enabled/disabled.

IT WORKS

Disha167 avatar Sep 09 '20 21:09 Disha167

I finally solved the problem by following the steps to disable Credential Guard.

Microsoft posted the following article on 09/09/2020

Virtualization applications do not work together with Hyper-V, Device Guard, and Credential Guard https://docs.microsoft.com/en-us/troubleshoot/windows-client/application-management/virtualization-apps-not-work-with-hyper-v

And enable / disable Credential Guard article https://docs.microsoft.com/en-us/windows/security/identity-protection/credential-guard/credential-guard-manage

kotorimura-studio avatar Sep 12 '20 22:09 kotorimura-studio

In my case, I had to disable "Enable hardware-assisted virtualization" on AVG Antivirus to install AMD

Open AVG -> Menu -> Settings -> General -> Troubleshooting -> Untick "Enable hardware-assisted virtualization" -> Restart

SVM was already enabled in bios by default on my ASRock motherboard and all the WIndows Features virtualization stuff was by default unchecked.

It installed just fine now.

itshendson avatar Sep 27 '20 18:09 itshendson

In my case, I had to disable "Enable hardware-assisted virtualization" on AVG Antivirus to install AMD

Open AVG -> Menu -> Settings -> General -> Troubleshooting -> Untick "Enable hardware-assisted virtualization" -> Restart

SVM was already enabled in bios by default on my ASRock motherboard and all the WIndows Features virtualization stuff was by default unchecked.

It installed just fine now.

This worked for me, using Avast Menu -> Settings -> General -> Troubleshooting -> Untick "Enable hardware-assisted virtualization" -> Restart

Thanks !!!

mohit9814 avatar Oct 05 '20 09:10 mohit9814