在Visual Studio 2022中启动Android模拟器的错误
几天前工作正常,但在 Visual Studio 更新后我收到此错误:
1>正在开始实施 Pixel_5_-api_30... 1>启动模拟器 Pixel_5-api_30 ... 1>C:\Program Files (x86)\Android\android-sdk\emulator\emulator.EXE -netfast -accel on -avd Pixel_5-api_30 -prop monodroid.avdname=pixel_5 -api_30 1>无法启动模拟器pixel_5-_api_30。
此外,Visual Studio 和 Android 设备管理器之间存在断开连接,因为当我创建新设备时,我必须重新打开 Visual 来刷新更改,而更新之前不会发生这种情况。 我还重新安装 VS,删除所有 Android 和 SDK 文件夹,删除 userdata-qemu.img 文件,但没有任何效果。
注意:模拟器会抛出此消息:设备错误:启动 AVD Pixel_5_-_api_30 后无法获取模拟器名称
更新: C:\Program Files (x86)\Android\android-sdk\emulator>emulator.exe -avd Pixel_5_-_api_30 -wipe-data 信息| Android 模拟器版本 31.1.4.0 (build_id 7920983) (CL:N/A) 警告|意外的系统映像特征字符串,模拟器可能无法正常工作,请尝试更新模拟器。 信息|添加库 vulkan-1.dll 信息| configAndStartRenderer:将垂直同步设置为 60 Hz 错误 |无法打开/qemu.conf,错误:2 HAX 正在工作,模拟器在快速 virt 模式下运行。 dsound:无法初始化 DirectSoundCapture dsound:原因:没有可用的声音驱动程序,或者给定的 GUID 不是有效的 DirectSound 设备 ID 尝试在没有 DirectSoundCapture 对象的情况下初始化语音 尝试在没有 DirectSoundCapture 对象的情况下初始化语音 无法创建语音 goldfish_audio_in' C:\Program Files (x86)\Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe:警告:打开音频输入失败在 127.0.0.1:8556 启动 GRPC 服务器,安全性:本地信息 |广告位置:C:\Users\Jose\AppData\Local\Temp\avd\running\pid_19240.ini 尝试在没有 DirectSoundCapture 对象的情况下初始化语音 尝试在没有 DirectSoundCapture 对象的情况下初始化语音 无法创建语音
adc' 警告|不保存状态:RAM 未映射为共享
更新 2:C:\Program Files (x86)\Android\android-sdk\emulator>emulator.exe -avd Pixel_5_-_api_30 -wipe-data 信息| Android 模拟器版本 31.1.4.0 (build_id 7920983) (CL:N/A) 警告|意外的系统映像特征字符串,模拟器可能无法正常工作,请尝试更新模拟器。 信息|添加库 vulkan-1.dll 信息| configAndStartRenderer:将垂直同步设置为 60 Hz 错误 |无法打开/qemu.conf,错误:2 HAX 正在工作,模拟器在快速 virt 模式下运行。 信息|在 127.0.0.1:8554 启动 GRPC 服务器,安全性:本地 信息|广告在:C:\Users\Jose\AppData\Local\Temp\avd\running\pid_8576.ini 警告|不保存状态:RAM 未映射为共享
A few days ago worked fine but after Visual Studio updated I get this error:
1>Starting implementation en pixel_5_-api_30...
1>Iniciando el emulador pixel_5-api_30 ...
1>C:\Program Files (x86)\Android\android-sdk\emulator\emulator.EXE -netfast -accel on -avd pixel_5-api_30 -prop monodroid.avdname=pixel_5-api_30
1>Can't start emulator pixel_5-_api_30.
Also there is a disconnection between Visual Studio and the Android Devices Administrator because when I create a new device I have to reopen Visual to refresh changes, which didn't happen before the updating.
I also reinstall VS, remove all Android and SDK folders, remove userdata-qemu.img file, nothing worked.
Note: The emulator throws this message: Device error: Could not get emulator name after starting AVD pixel_5_-_api_30
UPDATE:
C:\Program Files (x86)\Android\android-sdk\emulator>emulator.exe -avd pixel_5_-_api_30 -wipe-data
INFO | Android emulator version 31.1.4.0 (build_id 7920983) (CL:N/A)
WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
INFO | added library vulkan-1.dll
INFO | configAndStartRenderer: setting vsync to 60 hz
ERROR | Failed to open /qemu.conf, err: 2
HAX is working and emulator runs in fast virt mode.
dsound: Could not initialize DirectSoundCapture
dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID
Attempt to initialize voice without DirectSoundCapture object
Attempt to initialize voice without DirectSoundCapture object
Failed to create voice goldfish_audio_in' C:\Program Files (x86)\Android\android-sdk\emulator\qemu\windows-x86_64\qemu-system-x86_64.exe: warning: opening audio input failed INFO | Started GRPC server at 127.0.0.1:8556, security: Local INFO | Advertising in: C:\Users\Jose\AppData\Local\Temp\avd\running\pid_19240.ini Attempt to initialize voice without DirectSoundCapture object Attempt to initialize voice without DirectSoundCapture object Failed to create voice
adc'
WARNING | Not saving state: RAM not mapped as shared
UPDATE 2: C:\Program Files (x86)\Android\android-sdk\emulator>emulator.exe -avd pixel_5_-_api_30 -wipe-data
INFO | Android emulator version 31.1.4.0 (build_id 7920983) (CL:N/A)
WARNING | unexpected system image feature string, emulator might not function correctly, please try updating the emulator.
INFO | added library vulkan-1.dll
INFO | configAndStartRenderer: setting vsync to 60 hz
ERROR | Failed to open /qemu.conf, err: 2
HAX is working and emulator runs in fast virt mode.
INFO | Started GRPC server at 127.0.0.1:8554, security: Local
INFO | Advertising in: C:\Users\Jose\AppData\Local\Temp\avd\running\pid_8576.ini
WARNING | Not saving state: RAM not mapped as shared
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论