问题描述
在尝试运行创建的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%\qemu\windows-x86_64\qemu-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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!