Skip to content
Advertisement

How to fix app:lint error when building flutter app?

For some reason, all of a sudden my app cannot build anymore. First I had flutter devtools problem, then I upgraded to Flutter 2.8.1 and now my app cannot build. I tried upgrading Gradle to 7.3.3 and JDK 17 and still, my app cannot build, I searched the whole GitHub and StackOverflow and cannot find a solution.

This was my first error:

JavaScript

Which I fixed by adding:

JavaScript

to gradle.properties.

But now when I try to build I get another error:

JavaScript

Here is my flutter doctor -v

JavaScript

Advertisement

Answer

Add this in your app/build.gradle file

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement