Android Studio 3.0 模拟器:无法为 audioInputDeviceIOProc 锁定语音 [英] Android Studio 3.0 Emulator: Could not lock voice for audioInputDeviceIOProc
问题描述
在我的模拟器上构建我的应用程序时,我似乎遇到了这个错误.我不知道它的原因是什么,它似乎影响了我的应用程序,导致我的应用程序在模拟器上崩溃.
I seem to get this error while building my app on my emulator. I do not know what it the cause of it and it seems affecting my app which causes it my app to crash on the emulator.
模拟器:coreaudio:无法为 audioInputDeviceIOProc 锁定语音
模拟器:原因:参数无效
Emulator: coreaudio: Could not lock voice for audioInputDeviceIOProc
Emulator: Reason: Invalid argument
推荐答案
Android 模拟器中的音频输入现在不是很可靠.在修复之前,您可以通过以下步骤禁用它:
Audio input in the Android emulator is not super reliable right now. Until it's fixed you can disable it with these steps:
- 启动AVD 管理器"
- 在崩溃的图片上,点击操作栏中向下的图标,然后选择在磁盘上显示"
- 在打开的文件夹中应该是
config.ini
文件,在您喜欢的文本编辑器中打开它
- In the folder that was opened should be a
config.ini
file, open it in your favorite text editor
- 将
hw.audioInput=yes
更改(或添加)为hw.audioInput=no
- Change (or add)
hw.audioInput=yes
tohw.audioInput=no
- 保存并关闭
config.ini
并重新启动该 Android 模拟器映像——它现在应该可以正常工作而不会出现音频输入错误
- Save and close
config.ini
and relaunch that Android emulator image—it should now work without audio input errors
旁注:我遇到了可能相关的问题,并选择在 hw.audioInput=no
之后直接添加 hw.audioOutput=no
.如果 hw.audioInput=no
不能为您解决问题,您可能想尝试一下.
Sidenote: I had issues that are possibly related and also chose to add hw.audioOutput=no
directly after hw.audioInput=no
. You may want to try that if hw.audioInput=no
doesn't solve it for you.
这篇关于Android Studio 3.0 模拟器:无法为 audioInputDeviceIOProc 锁定语音的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!