lintOptions { disable 'InvalidPackage' checkReleaseBuilds false } code example
Example: Execution failed for task ':app:lintVitalRelease flutter build
android {
compileSdkVersion 28
lintOptions {
disable 'InvalidPackage'
//Put the following line
checkReleaseBuilds false
//abortOnError false
}