Execution failed for task ':app:mergeDebugShaders' Flutter

Viewed 55

When I try to run my code I get this error (no errors or warnings in flutter doctor):

enter image description here

1 Answers

Make sure you don't have any corrupted images/gifs/videos etc. If you have anything that requires a special encoder to run, this error probably will show up.

But if everything is okay, just add this line in your build.gradle file.

aaptOptions {  
    cruncherEnabled = false  
}  

This will probably solve your problems.

Related