在模拟器上启动android项目时出错(Windows上的API 28)

问题描述 投票:9回答:2

在尝试运行创建的Android项目时,我遇到错误,即使模拟器成功启动,项目也无法在模拟器上启动。

错误:

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'
android-emulator
2个回答
11
投票

这是您的新Windows 10更新。我无法理解我的生活!我在Google上查看了4页的结果,只看到了同样的旧垃圾。所以,我们走了。

要修复:单击开始,转到⚙设置>隐私设置>麦克风。开启“允许应用访问您的麦克风”

此外,MrPoopyB0tthole也告诉我这个问题。


0
投票

如果您尝试此线程中提到的步骤,您应该能够解决问题:Emulator: audio: Failed to create voice `adc'

我自己想到的另一个技巧是在启动Android Studio后不是通过调试或执行而是从AVD Manager启动模拟器。

更新:Mohsins解决方案似乎是一种更好的方法,因为它解决了我的问题。


0
投票

我有同样的东西,插上一个麦克风和扬声器固定它。

© www.soinside.com 2019 - 2024. All rights reserved.