Android Studio 3.0模拟器:无法锁定audioInputDeviceIOProc的语音 [英] Android Studio 3.0 Emulator: Could not lock voice for audioInputDeviceIOProc

查看:194
本文介绍了Android Studio 3.0模拟器:无法锁定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:

  1. 启动"AVD管理器"

  1. 在崩溃的图像上,单击操作"列中的向下图标,然后选择在磁盘上显示"

  1. 在打开的文件夹中应为config.ini文件,在您喜欢的文本编辑器中将其打开
  1. In the folder that was opened should be a config.ini file, open it in your favorite text editor

  1. hw.audioInput=yes更改(或添加)为hw.audioInput=no
  1. Change (or add) hw.audioInput=yes to hw.audioInput=no

  1. 保存并关闭config.ini并重新启动该Android模拟器图像-现在可以正常工作了,而不会出现音频输入错误
  1. 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屋!

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