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

查看:30
本文介绍了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天全站免登陆