Flutter 1.9: D/skia ( 5106): Shader compilation error
I solved my Shader compilation error
by changing emulator's settings.
Press that ...
button which is located on the side panel of emulator, and go to Settings section. There, go to Advanced tab and change OpenGL ES API level to Compatibility (OpenGL ES 1.1/2.0)
.
Do not forget to close and rerun the emulator after this change. On the first run, emulator could pop a warning on its screen and it would take a while to get ready, but do not worry.
The error message comes from: Add ShaderErrorHandler to GrContextOptions
In the previous Flutter versions, the persistent cache had been disabled to remedy the problem. However, it is currently enabled in the Fllutter engine: Revert "Disable the persistent cache
Possible solutions:
- Downgrade your Flutter version to the linked commit
- Enable rendering
flutter run --enable-software-rendering
- Disable hardware acceleration in the emulator
Issue:
8578 Shader compilation error
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!