Error: Execution failed for task ':app: lintVitalRelease' any one can solve it?
Solution 1:
To find out why lint fails do this:
- Run lintVitalRelease
You can do it from Gradle window
- Under Run tab, you will see error logs
For me, it was wrong constraint in ConstraintLayout XML.
Solution 2:
Based off this Post
Edit: I removed the link because the thread is no longer there
What you need to do is add this chunk of code to your build.gradle file in the android{} section
lintOptions {
checkReleaseBuilds false
}
So like this
android {
...
lintOptions {
checkReleaseBuilds false
}
}
Update:
Here is another post talking about a similar problem. It seems like there are various reasons this error can occur. While disabling the checkReleaseBuilds will work. It's recommended to find what the problem is and fix it. Most common error seems to be missing translations in the strings.xml
file.
I recommend checking out this post for more help
Error when generate signed apk
Solution 3:
The error report is saved to [app module]/build/reports/lint-results-yourBuildName-fatal.html
. You can open this file in a browser to read about the errors.
src: https://stackoverflow.com/a/50239165/365229
Solution 4:
lintOptions {
checkReleaseBuilds false
abortOnError false
}
Solution 5:
Open your build.gradle file and add the code below under android:
android {
lintOptions {
checkReleaseBuilds false
}