The SkiaEngine is a portable runtime for high-quality mobile applications. It implements Flutter’s core libraries, including animation and graphics, file and network I/O, accessibility support, plugin architecture, and a Dart runtime and toolchain for developing, compiling, and running Flutter Applications. So In this article will go through How to Solve Shader Compilation Error In Flutter?
How to Solve Shader Compilation Error In Flutter?
The error message comes from: Add ShaderErrorHandler to GrContextOptions
- Downgrade your Flutter version to the linked commit
- Enable rendering flutter run –enable-software-rendering
- Disable hardware acceleration in the emulator
Open the terminal, navigate to your folder and
Type flutter run --enable-software-rendering after that debug and run again.
This worked for me and it might help you too!
Please add –enable-software-rendering to
[Edit Configurations...] > [Additional arguments]
Emulator Performance used to set to Automatic, which in my case it runs using Hardware – GLES 2.0. Changing it to Software – GLES 2.0 solves this issue.
Where to find the setting: Open Android Studio, open AVD manager, click the edit icon that looks like a pencil on your virtual device.
Shader Compilation Error by changing the Emulator’s Settings.
Press that … button which is located on the side panel of the emulator, and go to the Settings section. There, go to the Advanced tab and change OpenGL ES API level to Compatibility (OpenGL ES 1.1/2.0).
Let us present a GitHub link to you.
Thanks for being with us on a Flutter Journey !!!
Keep Learning !!! Keep Fluttering !!!
Still, Need a Support for Flutter Development? We would love to assist you.
In this article, We have been through How to Solve Shader Compilation Error In Flutter?
FlutterAgency.com is our portal Platform dedicated to Flutter Technology and Flutter Developers. The portal is full of cool resources from Flutter like Flutter Widget Guide, Flutter Projects, Code libs and etc.
FlutterAgency.com is one of the most popular online portal dedicated to Flutter Technology and daily thousands of unique visitors come to this portal to enhance their knowledge on Flutter.