Execution failed for task ':app:lintVitalRelease'. code example

Example 1: Execution failed for task ':app:lintVitalRelease'.

android {
    ...
    lintOptions {
        checkReleaseBuilds false
    }
}

Example 2: Execution failed for task ':app:lintVitalRelease'. > Lint found fatal errors while assembling a release target.

module-build.gradle

android{
  lintOptions {

        checkReleaseBuilds false

    }
}

Example 3: Execution failed for task ':app:lintVitalRelease flutter build

android {
compileSdkVersion 28

lintOptions {
    disable 'InvalidPackage'
    //Put the following line
    checkReleaseBuilds false
    //abortOnError false
}