Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Emulator E/AudioFlinger error message

Tags:

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 I create a new device. Doesn't matter if "Use Host GPU" is enabled or not.

When I start my application it would usually start up right after the emulated device started up. Since this error message appears it does not start my application automatically (the app can still be started manually though).

Anyone else had any experience with that and maybe a possible solution?

EDIT 1: It stops looping the error message as soon as i hit the app button. Seems to just occur on the home screen.

like image 996
coconut Avatar asked Mar 24 '16 21:03

coconut


People also ask

Why is my emulator not working Android studio?

If the Android Emulator does not start properly, this problem is often caused by problems with HAXM. HAXM issues are often the result of conflicts with other virtualization technologies, incorrect settings, or an out-of-date HAXM driver. Try reinstalling the HAXM driver, using the steps detailed in Installing HAXM.

How do I fix emulator errors?

If your emulator is a device with the Google Play Services enabled, the error might be related to “OpenGL” to fix this, simply: Go to: Tools > Android > AVD Manager. Press the “edit” (pencil) icon next to your AVD.

Why do apps sometimes look different in the designer than they do in the emulator?

The reason why the designs look different is that the emulator's screen configuration is different to that which is used to render the design preview.


1 Answers

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.

like image 128
Lungo Avatar answered Sep 19 '22 01:09

Lungo