Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android emulator hypervisor fails to install !! #31

Closed
arixank opened this issue Aug 22, 2020 · 11 comments
Closed

Android emulator hypervisor fails to install !! #31

arixank opened this issue Aug 22, 2020 · 11 comments

Comments

@arixank
Copy link

arixank commented Aug 22, 2020

I have tried everything to get the thing installed but in vain !! Also each time it gives me an error while installing , I have also enabled Virtualization , hyper-v is not found on windows feature !!! And the powershell thing also doesn't work as hyper-v is not enabled on my Windows - 10 home edition !! Also I had disabled the antivirus and also turned off antivirus virtualization (antivirus : AVAST) !!
I want to use this emulator for flutter development !! Really fed up of trying to get this thing running !!

I have also attached the screen shots !!! So please help me with it !!
Laptop Details :
Asus - X542BA
Ram : 4GB
Processor : AMD A6
Android Studio version: 4.0.1

Screenshot (1035)

Screenshot (1036)

Screenshot (1038)

Screenshot (1040)

@arixank
Copy link
Author

arixank commented Aug 22, 2020

oooooffff!!
Finally I fixed it by myself , so here's what I did to solve my problem!!

Type the following:
In your shell : systeminfo (refer the attached image)

I'm using Windows 10 Home edition , which by default doesn't ship with Hyper-v thing !! So I used an external bat file to install !! [File is attached , make sure you run it as administrator( FILENAME: "Hyper-V-enabler.bat" , make sure you unzip it !!) ] , wait before you do that check weather your system has required configs (modern system meets the requirements by default)

After installing and restarting the computer , now you should be able to see the hyper - v in your windows features box !!

Simply uncheck it !! (Ya it's a bit stupid , but have too...!!) and restart !!

Now , navigate to programfiles/android/sdk/emulators : or where ever you have installed your sdk !!
In the top search bar , enter cmd and open the cmd in your current directory !!
and type :
emulator-check.exe hyper-v

if it displays hyper-v:disabled then you are good to go !!
You can disable hyper-v through powershell as mentioned in official Microsoft support page !! But that didn't work for me !!
So , open a cmd as administrator and type the following command :
bcdedit /set hypervisorlaunchtype off

execute and the restart !! [last restart]

Now , you can install amd hypervisor blah blah baa and be happy at last !!!
Make sure you get a success after the driver installation !!

Annotation 2020-08-22 163518
Hyper-V-Enabler.zip

@Taogle2018
Copy link
Collaborator

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
Copy link
Author

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.

Your welcome sir!! On windows 10 home hyper - v is a crazy thing!

@zombodotcom
Copy link

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

image

image

@arixank
Copy link
Author

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

image

image

Buddy you will have to disable hyper-v first!

@arixank
Copy link
Author

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

image

image

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
Copy link

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
image
image

@JJ36CF
Copy link

JJ36CF commented Aug 26, 2020

@AkkiBB

at the point where I need to run the "emulator-check.exe hyper-v" command, it's not recognized. Where did I mess up?
image

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.
image

You need to run the command prompt as administrator. That's why it's telling you that "Access is denied."

@AkkiBB
Copy link

AkkiBB commented Aug 27, 2020

Oh.. Well that's embarrassing haha. That fixed it for me thank you very much!

@arixank
Copy link
Author

arixank commented Aug 30, 2020

@AkkiBB

at the point where I need to run the "emulator-check.exe hyper-v" command, it's not recognized. Where did I mess up?
image

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.
image

You need to run the command prompt as administrator. That's why it's telling you that "Access is denied."

He's right!

@arixank arixank closed this as completed Sep 28, 2020
@Liinadec
Copy link

oooooffff!!
Finally I fixed it by myself , so here's what I did to solve my problem!!

Type the following:
In your shell : systeminfo (refer the attached image)

I'm using Windows 10 Home edition , which by default doesn't ship with Hyper-v thing !! So I used an external bat file to install !! [File is attached , make sure you run it as administrator( FILENAME: "Hyper-V-enabler.bat" , make sure you unzip it !!) ] , wait before you do that check weather your system has required configs (modern system meets the requirements by default)

After installing and restarting the computer , now you should be able to see the hyper - v in your windows features box !!

Simply uncheck it !! (Ya it's a bit stupid , but have too...!!) and restart !!

Now , navigate to programfiles/android/sdk/emulators : or where ever you have installed your sdk !!
In the top search bar , enter cmd and open the cmd in your current directory !!
and type :
emulator-check.exe hyper-v

if it displays hyper-v:disabled then you are good to go !!
You can disable hyper-v through powershell as mentioned in official Microsoft support page !! But that didn't work for me !!
So , open a cmd as administrator and type the following command :
bcdedit /set hypervisorlaunchtype off

execute and the restart !! [last restart]

Now , you can install amd hypervisor blah blah baa and be happy at last !!!
Make sure you get a success after the driver installation !!

Annotation 2020-08-22 163518
Hyper-V-Enabler.zip

возможно, это и не решение проблемы.
У меня включен 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants