android emulator hypervisor driver for amd processors installation failed что делать
Запуск эмулятора Android Studio на процессоре AMD
При нажатии запуска(run) эмулятора, всплывает окошечко с требованием установить HAXM. Когда проц у меня AMD, интеловские пакеты не поддерживаются.
Тут я показал установленный пакет Эмулятор Гипервизор для AMD(в ролике видел, если не интел значит этот пакет качаем, так говорилось)
А это то самое мерзкое окно которое всплывает после запуска эмулятора.
Все источники рекомендуют производить операцию включения виртуализации в BIOS а так же какие-то танцы с включением и выключением Hyper-V.
Вот как-то я пытался мансовать. На скрине приложение показывает что виртуализация отключена. Хотя я как раз таки её включал, странно, ну да ладно. И в компонентах напротив Hyper-V стоит галочка
И вот при таких условиях Android Studio запрашивает шахматы. Как надо всё расставить что бы заработало?
3 ответа 3
Дело в том, что установочный пакет, указанный в SDK Tools требует установки. Он просто скачивается в папку, где лежит AndroidSDK\extras\google\Android_Emulator_Hypervisor_Driver, но сам не устанавливается. Нужно вручную запустить silent_install.bat от имени Администратора. Команда разработки говорит, что это пока временное решение. Почитать про это нововведение можно тут: https://androidstudio.googleblog.com/2019/12/emulator-29211-and-amd-hypervisor-12-to.html
Благодаря AMD Hypervisor эмуляция будет запускаться с хардверным ускорением ЦПУ, не нужно включать Hyper-V / WHPX (а значит, вы сможете запускать другие виртуальные машины, типа VirtualBox, т.к. раньше такое было невозможно).
Not able to Install Android Emulator Hypervisor Driver for AMD Processors #54
Comments
Calatop commented Apr 7, 2021
I followed the instructions and disabled Hyper-V and Downloaded Cupid to check whether it’s actually disabled or not and It looks like Cupid isn’t working either. After looking at other issues who are facing a similar problem I didn’t find a solution for my issue.
The text was updated successfully, but these errors were encountered:
Orangewic commented Apr 11, 2021
Orangewic commented Apr 11, 2021
Calatop commented Apr 12, 2021
adligo commented Sep 4, 2021
Me Either;
Preparing «Install Android Emulator Hypervisor Driver for AMD Processors (installer) (revision: 1.7.0)».
Downloading https://dl.google.com/android/repository/gvm-windows_v1_7_0.zip
«Install Android Emulator Hypervisor Driver for AMD Processors (installer) (revision: 1.7.0)» ready.
Installing Android Emulator Hypervisor Driver for AMD Processors (installer) in C:\Users\scott.DESKTOP-CUH6C09\AppData\Local\Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver
«Install Android Emulator Hypervisor Driver for AMD Processors (installer) (revision: 1.7.0)» complete.
«Install Android Emulator Hypervisor Driver for AMD Processors (installer) (revision: 1.7.0)» finished.
Parsing C:\Users\scott.DESKTOP-CUH6C09\AppData\Local\Android\Sdk\build-tools\31.0.0\package.xml
Parsing C:\Users\scott.DESKTOP-CUH6C09\AppData\Local\Android\Sdk\emulator\package.xml
Parsing C:\Users\scott.DESKTOP-CUH6C09\AppData\Local\Android\Sdk\extras\google\Android_Emulator_Hypervisor_Driver\package.xml
Parsing C:\Users\scott.DESKTOP-CUH6C09\AppData\Local\Android\Sdk\patcher\v4\package.xml
Parsing C:\Users\scott.DESKTOP-CUH6C09\AppData\Local\Android\Sdk\platform-tools\package.xml
Parsing C:\Users\scott.DESKTOP-CUH6C09\AppData\Local\Android\Sdk\platforms\android-31\package.xml
Parsing C:\Users\scott.DESKTOP-CUH6C09\AppData\Local\Android\Sdk\system-images\android-29\google_apis_playstore\x86\package.xml
Parsing C:\Users\scott.DESKTOP-CUH6C09\AppData\Local\Android\Sdk\system-images\android-30\google_apis\x86\package.xml
Parsing C:\Users\scott.DESKTOP-CUH6C09\AppData\Local\Android\Sdk\tools\package.xml
Android SDK is up to date.
Running Android Emulator Hypervisor Driver for AMD Processors installer
[SC] ControlService FAILED 1062:
The service has not been started.
[SC] DeleteService SUCCESS
[SC] StartService FAILED with error 4294967201.
Android Emulator Hypervisor Driver for AMD Processors installation failed. To install Android Emulator Hypervisor Driver for AMD Processors follow the instructions found at: https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors
Done
whymatter commented Sep 21, 2021
I have the same Problem.
Ryzen 5900
Hyper-V and Hypervisor Platform disabled
Virtualization enabled
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
История о том, как запустить эмулятор Android или сэкономить на процессоре intel
Предыстория
Я собрал года 4 назад домашний комп, который подходил всем моим запросам. На процессоре решил сэкономить — взял amd. К компу вопросов нет.
Потом занялся разработкой под Android и тут меня ждал сюрприз! Эмулятор запускался только на процессоре intel. Его можно было запустить без аппаратной виртуализации конечно, используя вот этот совет www.youtube.com/watch?v=QTbjdBPKnnw&t=127s, но кто пользовался знает, что эмулятор может запускаться очень долго. У меня с 12ГБ доходило до 10 мин. Это может конечно из-за встроенной видеокарты.
Основное рабочее место у меня было в офисе, поэтому особо переживал и тестировал дома на реальных устройствах. Но пару месяцев назад стал нужен именно эмулятор. Первой мыслью было конечно купить intel-овский процессор. Но нужно было покупать ещё материнскую плату и видеокарту. Скорее всего я бы так и поступил, если бы не наткнулся на обновлённые требования к системе. В требованиях написано, что эмулятор всё таки можно запустить на Windows 10 (с обновлениями после апреля 2018) с помощью технологии WHPX.
Теперь основная часть истории, как это сделать. Всё оказалось не так тривиально. Заранее прошу прощения за упущения, потому что не могу назвать себя знатоком ни в “железе”, ни в Windows.
Инструкция
После всех обновлений эмулятор естественно не запустился. AndroidStudio пыталась запустить эмулятор с помощью HAXM и выбрасывала ошибку “Emulator: emulator: ERROR: x86 emulation currently requires hardware acceleration!”.
Далее приведу инструкцию с ссылками упустив кучу подробностей и моих “танцев с бубном”.
Должен поддерживать для работы с аппаратной виртуализацией.
2. Обновляем Windows 10 до версии 1803 (апрель 2018):
4. Включаем в bios режим виртуализации. Он там может называеться IOMMU, а не VT.
5. Качаем обновления для bios с официального сайта. Для моего asus, например, они были здесь.
Версия Bios должна стать что-то около 3001:
7. Заходим на сайт microsoft и изучаем инструкцию для включения компонента.
8. Нужно проверить требования Hyper-V. Для этого в командной строке набираем systeminfo. Проверяем, чтобы отображались эти значения:
У меня же вместо это было сообщение:
На официальном сайте написано, что пока не будет стоять Yes-Yes-Yes-Yes система WHPX не будет работать. У меня же эмулятор запускается, при включенной низкоуровневой оболочке.
9. Далее в руководстве предлагается включить компонент hyper-v (он по умолчанию отключен):
В русском переводе наименования несколько отличаются:
Кстати, после отключения компонента “Платформа низкоуровневой оболочки Windows”, “Требования hyper-v” становятся Yes-Yes-Yes-Yes. Не понял этот момент. Если кто разбирается, напишите в комментариях.
10. Определяем, нужно ли нам всё это? Или легче было купить intel)
После этих настроек всё должно заработать:
Хочу отметить, используя технологию WHPX и процессор amd, запуск эмулятора занимает примерно столько же времени, сколько на процессоре intel. Учитывая, что остальное «железо» сравнимо по своим параметрам.
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.
4 Answers 4
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, then Save and Exit.
This method by Tamer works for me but you have to restart your computer for it to be effective.
Comments
arixank commented Aug 22, 2020 •
The text was updated successfully, but these errors were encountered:
arixank commented Aug 22, 2020
Type the following:
In your shell : systeminfo (refer the attached image)
Taogle2018 commented Aug 23, 2020
Really great sharing! Thanks!
I know (from my own experience not from Microsoft release notes) certain version/edition of Windows 10 has hyper-V installed by default. But I never know a solution like thins. I myself used to upgrade to Windows 10 Pro and disable Hyper-V.
arixank commented Aug 23, 2020
Really great sharing! Thanks!
I know (from my own experience not from Microsoft release notes) certain version/edition of Windows 10 has hyper-V installed by default. But I never know a solution like thins. I myself used to upgrade to Windows 10 Pro and disable Hyper-V.
zombodotcom commented Aug 24, 2020 •
this might not be the solution.
I have hyper-V enabled on an AMD 3700x..
and my friend cant run it with his amd system
arixank commented Aug 24, 2020
this might not be the solution.
I have hyper-V enabled on an AMD 3700x..
and my friend cant run it with his amd system
Buddy you will have to disable hyper-v first!
arixank commented Aug 24, 2020
this might not be the solution.
I have hyper-V enabled on an AMD 3700x..
and my friend cant run it with his amd system
Of course it may not work for everyone!! As the previous solutions from other thread didn’t work for me!!it’s a part of dev’s life
AkkiBB commented Aug 26, 2020 •
Hello! I think I’ve followed the steps you detailed and at the point where I need to run the «emulator-check.exe hyper-v» command, it’s not recognized. Where did I mess up? The «bcdedit /set hypervisorlaunchtype off» command doesn’t work either.
I have more screenshots of information on this thread:
#19
JJ36CF commented Aug 26, 2020 •
at the point where I need to run the «emulator-check.exe hyper-v» command, it’s not recognized. Where did I mess up?
You’re running the command from the wrong location. emulator-check.exe is located in . \Android\Sdk\emulator.
The «bcdedit /set hypervisorlaunchtype off» command doesn’t work either.
You need to run the command prompt as administrator. That’s why it’s telling you that «Access is denied.»
AkkiBB commented Aug 27, 2020
Oh.. Well that’s embarrassing haha. That fixed it for me thank you very much!
arixank commented Aug 30, 2020
at the point where I need to run the «emulator-check.exe hyper-v» command, it’s not recognized. Where did I mess up?
You’re running the command from the wrong location. emulator-check.exe is located in . \Android\Sdk\emulator.
The «bcdedit /set hypervisorlaunchtype off» command doesn’t work either.
You need to run the command prompt as administrator. That’s why it’s telling you that «Access is denied.»
Liinadec commented Jan 18, 2021
Type the following:
In your shell : systeminfo (refer the attached image)
возможно, это и не решение проблемы.
У меня включен hyper-V на AMD 3700x..
и мой друг не может запустить его со своей системой amd![]()
Of course it may not work for everyone!! As the previous solutions from other thread didn’t work for me!!it’s a part of dev’s life
Words cannot convey how grateful I am to you, sir, virtualization just stopped working on my laptop, and thanks to your installer everything worked after a week, good luck and success in your endeavors!