Giter Club home page Giter Club logo

Comments (15)

Uj947nXmRqV2nRaWshKtHzTvckUUpD avatar Uj947nXmRqV2nRaWshKtHzTvckUUpD commented on May 9, 2024

which is output of:
emulator-check.exe cpu-info emulator-check.exe accel

from android-emulator-hypervisor-driver-for-amd-processors.

unitrix0 avatar unitrix0 commented on May 9, 2024

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.

Uj947nXmRqV2nRaWshKtHzTvckUUpD avatar Uj947nXmRqV2nRaWshKtHzTvckUUpD commented on May 9, 2024

Are you trying to run emulator inside a virtual machine? ("Inside a VM")

from android-emulator-hypervisor-driver-for-amd-processors.

unitrix0 avatar unitrix0 commented on May 9, 2024

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.

Uj947nXmRqV2nRaWshKtHzTvckUUpD avatar Uj947nXmRqV2nRaWshKtHzTvckUUpD commented on May 9, 2024

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.

unitrix0 avatar unitrix0 commented on May 9, 2024

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.

Uj947nXmRqV2nRaWshKtHzTvckUUpD avatar Uj947nXmRqV2nRaWshKtHzTvckUUpD commented on May 9, 2024

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.

unitrix0 avatar unitrix0 commented on May 9, 2024

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.

Uj947nXmRqV2nRaWshKtHzTvckUUpD avatar Uj947nXmRqV2nRaWshKtHzTvckUUpD commented on May 9, 2024

Can you please post the exact error you get when launching this newly created avd?

from android-emulator-hypervisor-driver-for-amd-processors.

unitrix0 avatar unitrix0 commented on May 9, 2024

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.

unitrix0 avatar unitrix0 commented on May 9, 2024

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.

unitrix0 avatar unitrix0 commented on May 9, 2024

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.

Uj947nXmRqV2nRaWshKtHzTvckUUpD avatar Uj947nXmRqV2nRaWshKtHzTvckUUpD commented on May 9, 2024

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.

unitrix0 avatar unitrix0 commented on May 9, 2024

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.

Taogle2018 avatar Taogle2018 commented on May 9, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.