Android Studio模拟器无法初始化DirectSoundCapture。

7

我在Android Studio 3.2中创建了一个基本的helloworld应用程序,并尝试使用AVD管理器运行一些模拟器以测试该应用程序,但是模拟器仅停留在Google标志上,最终Android Studio超时并停止尝试在模拟器上运行应用程序。与此同时,在事件日志中出现以下错误。

4:25 PM Emulator: dsound: Could not initialize DirectSoundCapture

4:25 PM Emulator: dsound: Reason: No sound driver is available for use, or the given GUID is not a valid DirectSound device ID

4:25 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

4:25 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

4:25 PM Emulator: audio: Failed to create voice `goldfish_audio_in'

4:25 PM Emulator: qemu-system-i386.exe: warning: opening audio input failed

4:25 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

4:25 PM Emulator: dsound: Attempt to initialize voice without DirectSoundCapture object

4:25 PM Emulator: audio: Failed to create voice `adc'

1
我有同样的问题。你解决了吗? - Gianmarco Biscini
1个回答

2

我也遇到了同样的问题。 解决方法是:--

更改ids.xml文件。 将标签变为内部标签,像这样

在出现错误之前,代码如下:

    <?xml version="1.0" encoding="utf-8"?>
<resources>
    <item name="workouttype" type="id" />
    <item name="txthello" type="id">txthello</item>
</resources>

删除 "txthello" 并将项目标签变为内部标签。您可能没有 "txthello": - 更改代码后,应该看起来像这样:

 <?xml version="1.0" encoding="utf-8"?>
<resources>
    <item name="workouttype" type="id" />
    <item name="txthello" type="id"/>
</resources>

现在就是这样。!!! 在模拟器上运行您的应用程序。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接