Comments (15)
which is output of:
emulator-check.exe cpu-info emulator-check.exe accel
from android-emulator-hypervisor-driver-for-amd-processors.
Here you go:
emulator-check.exe cpu-info
cpu-info:
137
AMD CPU|Inside a VM|64-bit CPU|
cpu-info
emulator-check.exe accel
accel:
0
WHPX (10.0.18362) is installed and usable.
accel
from android-emulator-hypervisor-driver-for-amd-processors.
Are you trying to run emulator inside a virtual machine? ("Inside a VM")
from android-emulator-hypervisor-driver-for-amd-processors.
No, what I might need to add is that I started the development on a Intel CPU and now changed to AMD.
from android-emulator-hypervisor-driver-for-amd-processors.
I suppose you need to go to SDK Manager > SDK Tools > make sure you have installed "Android Emulator hypervisor driver for AMD Processor" and make sure you don't have checked "Intel x86 Emulator Accelerator (HAXM installer)"
I recommend installing latest version from here: https://github.com/google/android-emulator-hypervisor-driver-for-amd-processors/releases
From my experience, it's better to install it with this command (instead of running bat files)
RUNDLL32.EXE SETUPAPI.DLL,InstallHinfSection DefaultInstall 132 .\gvm.Inf
then reboot
from android-emulator-hypervisor-driver-for-amd-processors.
I've verified that HAXM is uninstalled and the other thing is installed. I then used your link and finally got the gvm service. However if I start the Virtual Device now it tells me that WHPX is not configured and I should activate the Windows Hypervisor Platform feature. I thought that's not needed?
from android-emulator-hypervisor-driver-for-amd-processors.
Is it working for a newly created avd? Maybe there's something explicitely specified in the previously created avd config.
(%userprofile%.android\avd<avd_name>.avd*)
Also make sure you reboot after installing the gvm driver
I would look into hardware-qemu.ini. For reference, i run an amd and my config contain these lines:
....
hw.cpu.arch = x86
hw.cpu.model = qemu32
hw.cpu.ncore = 4
....
hw.gpu.enabled = true
hw.gpu.mode = host
....
from android-emulator-hypervisor-driver-for-amd-processors.
I did the reboot
Created a new device but the settings look the same...
hardware-qemu.ini.txt
from android-emulator-hypervisor-driver-for-amd-processors.
Can you please post the exact error you get when launching this newly created avd?
from android-emulator-hypervisor-driver-for-amd-processors.
If I start the device through the device manager I immediately get a dialog saying WHPX isn't configured and I should activate the Windows-Hypervisor-Plattform feature to use the native Hypervisor. Two Buttons, "Documentation" and "Run Anyway". I don't post a screenshot since the message is in German.
If I start a Debug session on the Build Output I get this:
1>------ Build started: Project: Mobile.Android, Configuration: Debug Any CPU ------
emulator: WARNING: x86 emulation may not work without hardware acceleration!
emulator: emulator window was out of view and was recentered
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\Microsoft.Common.CurrentVersion.targets(2084,5): warning MSB3277: Found conflicts between different versions of "System.Numerics.Vectors" that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed.
1> Mobile.Android -> C:\_Repos\Beep_Mobile\Mobile\Mobile.Android\bin\Debug\Mobile.Android.dll
1>C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\Xamarin.Android.Legacy.targets(225,5): warning XA0122: Assembly 'Xamarin.Android.Support.Annotations' is using a deprecated attribute '[assembly: Java.Interop.DoNotPackageAttribute]'. Use a newer version of this NuGet package or notify the library author.
2>Waiting for runtime checks to complete
and then nothing happens anymore
from android-emulator-hypervisor-driver-for-amd-processors.
The "Documentation" button leads me to this:
https://docs.microsoft.com/en-us/xamarin/android/get-started/installation/android-emulator/hardware-acceleration?tabs=vswin&pivots=windows#hyper-v
If I understand that right I need to install the Hyper-V feature..?
from android-emulator-hypervisor-driver-for-amd-processors.
That was it! I installed the Hyper-V component as described in that link now a Nexus 6P with R 11.0 - appi 30 runs but a Pixel 3a does not run with that OS. I guess thats not supported
from android-emulator-hypervisor-driver-for-amd-processors.
That's strange. You should be able to run avd on AMD without having to install hyper-v, as documented here:
Ref: https://developer.android.com/studio/run/emulator-acceleration
Criteria | Hypervisor |
---|---|
You have an Intel processor and do not need to run Hyper-V at the same time as the Android Emulator. | Use Intel HAXM. |
You have an Intel processor and do need to run Hyper-V at the same time as the Android Emulator. | Use WHPX. |
You have an AMD processor and do not need to run Hyper-V at the same time as the Android Emulator. | Use Android Emulator Hypervisor Driver for AMD Processors. |
You have an AMD processor and do need to run Hyper-V at the same time as the Android Emulator. | Use WHPX. |
Personally, I didn't install hyper-v, only the gvm driver.
from android-emulator-hypervisor-driver-for-amd-processors.
It is strange... How ever, the table on the page I posted says if you have and AMD CPU use WHPX which leads me to the instructions on installing Hyper-V..... I don't know.
anyway, appreciate your help.
from android-emulator-hypervisor-driver-for-amd-processors.
@unitrix0 I am absent from work recently.
The output message is something meaningful to me. It basically means your system has Hyper-V enabled. The purpose of this small utility is to help me figure out the exact system configuration users are using. Whether Hyper-V is enabled can be hard for user to figure out. Later I updated Android Emulator binaries to take advantage of findings of this small unity. You can also now use "emulator-check.exe hyper-v" to check hyper-v status. (Old version may show wrong status).
As @fusionneur said, you could either use WHPX (which is built on top of Hyper-V), or disable Hyper-V and try installing again. If you decide to use Hyper-V, you can safely ignore the installation error.
from android-emulator-hypervisor-driver-for-amd-processors.
Related Issues (20)
- Can Android Emulator and WSL2 co-exist in Windows 10 Pro with Ryzen 7 CPU HOT 2
- Win 10, Ryzen 5 3400G, Error 4294967201 HOT 9
- -
- issue while creating device in android sdudio HOT 2
- issue in HAXM
- problem in Installing android emulator hypervisor driver for amd processors. HOT 4
- fd
- Extremely poor performance when using driver - possible issue with uninstallation
- The driver is unsigned (error 577) HOT 2
- [SC] StartService FAILED with error 4294967201 HOT 8
- Gente bom dia me ajude por favor quando tento Instalar esse emulador AMD no Andorid estudio não consigo de jeito algum HOT 3
- issue
- StartService FAILED with error 4294967201 and while iam launching emulator "the emulator process for avd has been terminated" HOT 2
- Is amd64 (emulation x86_64) worked?
- [Question] Windows Arm64 Support? HOT 1
- Amd android emulator driver for windows 7 HOT 6
- Intel CPUs without SLAT/EPT
- Install script not Grabbing Admin Privledges
- [Feature request] Add ARM64 support HOT 2
- Unable to install android emulator hypervisor driver in Android Studio
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-emulator-hypervisor-driver-for-amd-processors.