Android emulator 在emulator上启动android项目时出错(windows上的API 28)

Android emulator 在emulator上启动android项目时出错(windows上的API 28),android-emulator,Android Emulator,在尝试运行创建的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

在尝试运行创建的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 Studio后,不是通过调试或执行,而是通过AVD管理器启动模拟器

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

这是您的新Windows 10更新。我一辈子都想不出来!我在谷歌上看了4页的搜索结果,只看到了同样的废话。那么,我们开始吧

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


另外,Poopyb0tthole先生也向我建议了这个修复方法。

我也有同样的方法,并通过插入麦克风和扬声器进行了修复。

我尝试了上述解决方案以及本文中的解决方案

但事实证明,它们都不适合我

在下载并安装新的NVidia驱动程序后的一天结束时,它们神奇地重新开始工作。

更新: 我想我终于解决了这个问题:

去⚙ 设置>隐私设置>麦克风。打开“允许应用程序访问您的麦克风”(如果关闭,则我的麦克风已打开) 完成此步骤后,打开“语音记录器”

这为我解决了问题

////////////////////////////////////////////////////////////////////////////////

我也有同样的问题,试过了和这篇文章中的一个:

旧错误日志:

8:48 AM Emulator: dsound: Could not initialize DirectSoundCapture

8:48 AM Emulator: dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID

8:48 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

8:48 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

8:48 AM Emulator: audio: Failed to create voice `goldfish_audio_in'

8:48 AM Emulator: C:\Users\myName\AppData\Local\Android\Sdk\emulator\qemu\windows-x86_64\qemu-system-i386.exe: warning: opening audio input failed

8:48 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

8:48 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

8:48 AM Emulator: audio: Failed to create voice `adc'

8:48 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

8:48 AM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

8:48 AM Emulator: audio: Failed to create voice `adc'

8:48 AM Emulator: socketTcpLoopbackClientFor: error: fd 43920 above FD_SETSIZE (32768)

8:48 AM Emulator: socketTcpLoopbackClientFor: error: fd 43920 above FD_SETSIZE (32768)

8:48 AM Emulator: socketTcpLoopbackClientFor: error: fd 43944 above FD_SETSIZE (32768)

8:48 AM Emulator: socketTcpLoopbackClientFor: error: fd 43944 above FD_SETSIZE (32768)

8:48 AM Emulator: socketTcpLoopbackClientFor: error: fd 48540 above FD_SETSIZE (32768)

8:48 AM Emulator: socketTcpLoopbackClientFor: error: fd 48540 above FD_SETSIZE (32768)

在windows 10中,我只需插入麦克风,错误就消失了。

@Gourav:我不知道你对Mohsin的答案有何批评,但他的解决方案似乎有效,我发现将其发布到该线程中非常有用。莫辛:非常感谢并欢迎来到StackOverflow。好的,所以我授予他10个荣誉!我投了一票。对你的评论也投一票。为我的行为感到抱歉。我放弃投票仅仅是因为在一次关于堆栈溢出的严肃对话中提到了术语“MrPoopyB0tthole”。自1809年(2019年5月)以来,这似乎不再起作用。Android Studio不在授权应用程序列表中。。。如何启用此功能?我有Windows 7:(同一问题您需要在回答中提供任何限制、假设或简化。请参阅此链接中有关如何回答的更多详细信息:这并不能真正回答问题。如果您有不同的问题,您可以通过单击来提问。您还可以在有足够的答案后吸引更多的注意力。-您应该插入麦克风,第一次运行emulator,它会解决问题。之后,您可以断开麦克风。另外