在模拟器上启动 android 项目时出错(Windows 上的 API 28) [英] Error launching the android project on emulator(API 28 on windows)
问题描述
在尝试运行创建的 Android 项目时,我遇到了错误,即使模拟器成功启动,项目也无法在模拟器上启动.
While trying to run the created Android project, I am getting below error and the project does not launch on the emulator even though the emulator gets launched successfully.
错误:
6:04 PM Emulator: dsound: Could not initialize DirectSoundCapture
6:04 PM Emulator: dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID
6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:04 PM Emulator: audio: Failed to create voice `goldfish_audio_in'
6:04 PM Emulator: %PATH%qemuwindows-x86_64qemu-system-x86_64.exe: warning: opening audio input failed
6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:04 PM Emulator: audio: Failed to create voice `adc'
6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:04 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object
6:04 PM Emulator: audio: Failed to create voice `adc'
推荐答案
这是您的新 Windows 10 更新.我这辈子都想不通!我在 Google 上查看了 4 页结果,只看到了同样的老废话.所以,我们开始吧.
It's your new Windows 10 Update. I couldn't figure it out for the life of me! I looked at 4 pages of results on Google and only saw the same old crap. So, here we go.
修复:单击开始,转到 ⚙ 设置 > 隐私设置 > 麦克风.开启允许应用访问您的麦克风"
To Fix: Click Start, go to ⚙ Settings> Privacy Settings> Microphone. Turn On "Allow apps to access your microphone"
此外,MrPoopyB0tthole 也建议我进行此修复.
Also, MrPoopyB0tthole advised me of this fix as well.
这篇关于在模拟器上启动 android 项目时出错(Windows 上的 API 28)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!