我已经足够多地看到此错误,但在具有 Apple M1 芯片、通过 Visual Studio 2019 for Mac 运行的 2020 Macbook pro 上却没有。
当我尝试启动 Android 模拟器时,出现错误; “意外的错误”
当我通过 Visual Studio 进入 Android 设备管理器时,选项是有限的,但是,尝试启动模拟器给出了众所周知的
设备错误:警告:意外的“-prop”值(“monodroid.avdname=pixel_2_pie_90-_api_28”),只有“qemu”。支持属性>警告:意外的“-prop”值(“emu.uuid=7698980f-2d31-4db3-973b-df409a67754d”),只有“qemu”。支持属性
查看日志,它以以下内容结尾(格式化为代码以维护换行符):
[2021-05-10 18:39:15.0]
emulator: registered 'boot-properties' qemud service
[2021-05-10 18:39:15.0]
emulator: Adding boot property: 'qemu.cmdline' = 'androidboot.logcat=v:* androidboot.consolepipe=qemu_pipe,pipe:logcat'
[2021-05-10 18:39:15.0]
emulator: Adding boot property: 'qemu.logcat' = 'start'
[2021-05-10 18:39:15.0]
emulator: CPU Acceleration: DISABLED
[2021-05-10 18:39:15.0]
emulator: CPU Acceleration status: Android Emulator requires an Intel processor with VT-x and NX support. (VT-x is not supported)
[2021-05-10 18:39:15.0]
emulator: ERROR: x86 emulation currently requires hardware acceleration!
[2021-05-10 18:39:15.0]
CPU acceleration status: Android Emulator requires an Intel processor with VT-x and NX support. (VT-x is not supported)
[2021-05-10 18:39:15.0]
More info on configuring VM acceleration on macOS:
[2021-05-10 18:39:15.0]
https://developer.android.com/studio/run/emulator-acceleration#vm-mac
[2021-05-10 18:39:15.0]
General information on acceleration: https://developer.android.com/studio/run/emulator-acceleration.
[2021-05-10 18:39:15.0]
[2021-05-10 18:39:15.0]
遵循指南,例如 this one ,或尝试遵循 this 似乎是不可能的。
我不知道从哪里开始让它发挥作用。它在我的旧 iMac 上运行良好😩
谢谢!
看起来 Android 正在对支持 M1 芯片的模拟器进行更新