【问题标题】:Error launching the android project on emulator(API 28 on windows)在模拟器上启动 android 项目时出错(Windows 上的 API 28)
【发布时间】:2018-12-06 12:44:41
【问题描述】:

在尝试运行创建的 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


【解决方案1】:

这是您的新 Windows 10 更新。我这辈子都想不通!我在 Google 上查看了 4 页结果,只看到了同样的老废话。所以,我们开始吧。

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

此外,MrPoopyB0tthole 也建议我进行此修复。

【讨论】:

  • @Gourav:我不知道您对 Mohsin 的回答有何批评,但他的解决方案似乎奏效了,我发现将其发布到此线程中非常有帮助。 Mohsin:非常感谢,欢迎来到 StackOverflow。
  • 好的,所以我授予他 10 声望!我的一票。也为您的评论点赞。对不起我的行为??
  • 我投赞成票只是因为在 Stack Overflow 上的一次严肃对话中提到了“MrPoopyB0tthole”一词。
  • 自 1809 年(2019 年 5 月)以来,这似乎不再有效。 Android Studio 不在授权应用列表中...如何启用?
  • 我有 Windows 7 :( 同样的问题
【解决方案2】:

我有同样的问题,并通过插入麦克风和扬声器来修复它。

【讨论】:

    【解决方案3】:

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

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

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

    【讨论】:

      【解决方案4】:

      我已经尝试了上述解决方案以及这篇文章中的解决方案Emulator: audio: Failed to create voice `adc'

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

      在下载并安装新的 NVidia 驱动程序后,它们神奇地又开始工作了。

      【讨论】:

        【解决方案5】:

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

        【讨论】:

          【解决方案6】:

          更新: 我想我终于解决了:

          转到 ⚙ 设置 > 隐私设置 > 麦克风。打开“允许应用访问你的麦克风”(如果它关闭,我的打开) 完成此步骤后,打开“录音机”

          这解决了我的问题。

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

          我也有同样的问题,尝试了这篇文章中的那个:Emulator: audio: Failed to create voice `adc'

          旧错误日志:

          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)
          

          【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 2012-07-09
          • 2011-11-13
          • 2022-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-07-30
          相关资源
          最近更新 更多