当我将 Windows 更新到 Windows 11 时,我注意到当我为我的 Xamarin 项目运行 android 模拟器时,它卡住并说没有响应。
我尝试以下这些项目,但无法解决我的问题:
我的 Windows 功能中启用了我的虚拟机平台和 Hyper-V。
我的模拟器详细信息是:
OS: Android 12
Ram: 4GB
Resolution : 1080x2340 pixels
Google Services: true
最佳答案
对于 AMD 进程,我们需要向 Visual Studio 明确我们使用 AMD 进程,并且它应该将模拟器行为更改为我们的进程。
首先,就像我说的,我们需要确保 Virtual Machine Platform
和 Hyper-V
启用是因为必须在 Visual Studio 中运行 android 模拟器。
其次,我们需要确保 Android Emulator Hypervisor Driver for AMD Processors
在 Visual Studio 中选择。
适用于 AMD 处理器的 Android Emulator Hypervisor 驱动程序:
Visual Studio > Tools > Android > Android SDK Manager > Tools > Extras > Android Emulator Hypervisor Driver for AMD Processors
三、
Restart
你的 Visual Studio ,你很高兴去享受你在 AMD 处理器上的安卓模拟器。
关于c# - Android 模拟器没有响应 Xamarin 的 AMD 进程的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/71460025/