flutter release apk error :Execution failed for task ':app:lintVitalRelease'
flutter build apk --profile
then
flutter build apk --release
solves the issue.
For me worked this way only:
First: flutter build apk --debug
Then: flutter build apk --profile
In the end: flutter build apk --release
I have upgraded my gradle build tools 3.5.0 -> 4.0.1. After that I am not was not able to make release apk. Looks like upgrading gradle build tools broke some lints.
Below solution worked for me
Go in android folder->app->open build.gradle fine Search for lintOptions and add checkReleaseBuilds false example:
lintOptions {
disable 'InvalidPackage'
checkReleaseBuilds false //Insert this line
}
}