Android Studio 3.0 Emulator: Could not lock voice for audioInputDeviceIOProc

前端 未结 2 1125
逝去的感伤
逝去的感伤 2020-12-30 03:54

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 emu

2条回答
  •  旧巷少年郎
    2020-12-30 04:53

    Audio input in the Android emulator is not super reliable right now. Until it's fixed you can disable it with these steps:

    1. Launch “AVD Manager”

    1. On the crashing image, click the downward facing icon in the actions column and select “Show on Disk”

    1. In the folder that was opened should be a config.ini file, open it in your favorite text editor

    1. Change (or add) hw.audioInput=yes to hw.audioInput=no

    1. Save and close config.ini and relaunch that Android emulator image—it should now work without audio input errors

    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.

提交回复
热议问题