Android Studio模拟器无法初始化DirectSoundCapture [英] android studio emulator could not initialize DirectSoundCapture

查看:2527
本文介绍了Android Studio模拟器无法初始化DirectSoundCapture的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在android studio 3.2中只有一个基本的helloworld应用,并且我正在尝试运行一些模拟器来使用AVD管理器测试该应用,但该模拟器只是停留在Google徽标中,最终android studio超时并停止尝试攻击模拟器上的应用程序,与此同时,我在事件日志中看到以下错误.

I just have a basic helloworld app in android studio 3.2 and I am trying to run some emulators to test the app with AVD manager, but the emulator just stucks in google logo and eventually android studio times out and stops trying to attack the app on the emulator meanwhile I see following errors in the event log.

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'

推荐答案

我发生了同样的问题. 解决方案是:-

Same problem occurs with me. The solution is :--

更改ids.xml文件. 制作标签内部标签,就像这样

Change the ids.xml file. Make tag inner tag , Like this

在发生错误之前,代码是这样的:

Before error, Code is like this :

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

删除"txthello"和使项目标签为内部标签.您可能没有"txthello": -更改代码后,如下所示:

Delete "txthello" and make item tag inner tag. You may not have "txthello" : - After changing the code, look like this :

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

现在,就是这样!!!在模拟器上运行您的应用.

Now, that's it.!!! Run your app on emulator.

这篇关于Android Studio模拟器无法初始化DirectSoundCapture的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆