android studio模拟器无法初始化DirectSoundCapture

tou*_*bsb 7 android android-emulator kotlin android-studio-3.0

我只是在android studio 3.2中有一个基本的helloworld应用程序,我正在尝试运行一些模拟器来测试应用程序与AVD管理器,但模拟器只是卡在谷歌徽标,最终安卓工作室超时并停止尝试攻击应用程序同时我在事件日志中看到以下错误.

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'
Run Code Online (Sandbox Code Playgroud)

小智 2

我也出现同样的问题。解决办法是:--

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

出错之前,代码是这样的:

    <?xml version="1.0" encoding="utf-8"?>
<resources>
    <item name="workouttype" type="id" />
    <item name="txthello" type="id">txthello</item>
</resources>
Run Code Online (Sandbox Code Playgroud)

删除“txthello”并将item标签设为inner tag。您可能没有“txthello”:-更改代码后,如下所示:

 <?xml version="1.0" encoding="utf-8"?>
<resources>
    <item name="workouttype" type="id" />
    <item name="txthello" type="id"/>
</resources>
Run Code Online (Sandbox Code Playgroud)

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