Why I get this error I try to clean and rebuild application and make application release true and I get same error
Error:Execution failed for task \':
Open your build.gradle file and add the code below under android:
android {
lintOptions {
checkReleaseBuilds false
}
I was also getting an error like
> Failed to transform '/Users/michaelbui/Projects/counter/build/app/intermediates/flutter/debug/libs.jar' using Jetifier. Reason: FileNotFoundException, message: /Users/michaelbui/Projects/counter/build/app/intermediates/flutter/debug/libs.jar (No such file or directory). (Run with --stacktrace for more details.)
while building the app after the latest update, but then I disabled the lint task in android/app/build.gradle
lintOptions {
disable 'InvalidPackage'
checkReleaseBuilds false
}
and this worked for me.
To find out why lint fails do this:
You can do it from Gradle window
For me, it was wrong constraint in ConstraintLayout XML.
File > Invalidate Caches/Restart... worked for me.
lintOptions {
checkReleaseBuilds false
abortOnError false
}
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