Android Studio Emulator E/AudioFlinger error message

前端 未结 3 1400
醉梦人生
醉梦人生 2021-02-05 06:30

When I start any device from the AVD Manager it just loops this error message infinitely: E/AudioFlinger: read failed: framesRead=-1

It even does that when

相关标签:
3条回答
  • 2021-02-05 06:48

    I have the same problem, and if I don't stop it, Logcat will "say" "Too much output!" and if I still don't stop it, I get prompts to send an error report to Google, even freezes.

    I finally learned to put a strange set of characters that can't possibly be displayed by an error message (I use "~~~~~") and put the same string as the first argument of my Log statements and all I see are my own messages. Of course this means I don't see errors, especially Exceptions, so I just put Excep after the string "~~~~~" and delete them one by one (otherwise, here comes the deluge again).

    0 讨论(0)
  • 2021-02-05 07:07

    Open Google Settings app > Search & Now > Voice
    Here you need to turn off "OK Google" Detection. It may be grayed out and disabled with mark "Retrieving settings...". To make it enabled, just change the language to any other one in the field above it. If selected language is unsupported for "OK Google" detection, the switch inside this menu will be also grayed, it fixes the problem as well.

    0 讨论(0)
  • 2021-02-05 07:08

    make sure you have audio permission in your manifest:

    <uses-permission android:name="android.permission.RECORD_AUDIO" />
    
    0 讨论(0)
提交回复
热议问题