我在 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'
我也出现同样的问题。
解决办法是:--
更改 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>
现在,就是这样。!!!在模拟器上运行您的应用程序。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)