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屋!