androidflutterandroid-emulator

Error using Flutter with Android emulation "E/libEGL: called unimplemented OpenGL ES API"


I would appreciate if you help me with this issue I have been having for the last month.

When I run a Flutter app in an Android emulator I get the following logs every time flutter needs to update the screen or load an image, whether it’s with the widget ‘Image.network’ or with ‘Image.asset’.

E/libEGL  ( 5968): called unimplemented OpenGL ES API
D/EGL_emulation( 5968): app_time_stats: avg=947.73ms min=19.49ms max=3199.28ms count=4

That log can apper every second if I am loading a gift instead of an image.

I already tried the following and got no results from it:


Solution

  • I was able to identify that the problem was due to the graphics engine that Flutter has been using for about 2 or 3 versions (Impeller). This has a Vulkan and OpenGL compatibility bug. I was even able to find an issue from the Flutter development team, reporting the error (see https://github.com/flutter/flutter/issues/163269 ). Therefore, we can temporarily, until the bug is resolved, get by with the command:

    flutter run --no-enable-impeller
    

    which I found in this https://stackoverflow.com/questions/76970158/flutter-impeller-in-android-emulator.

    Thanks to @MorrisonChang for the contribution.

    Apparently It was recently solved on Flutter 3.29.0