Error: Execution failed for task ':app: lintVitalRelease' any one can solve it?

后端 未结 8 1849
一向
一向 2020-12-08 18:49

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 \':

相关标签:
8条回答
  • 2020-12-08 19:01

    Open your build.gradle file and add the code below under android:

    android {
    
        lintOptions { 
          checkReleaseBuilds false 
        }
    
    0 讨论(0)
  • 2020-12-08 19:01

    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.

    0 讨论(0)
  • 2020-12-08 19:05

    To find out why lint fails do this:

    1. Run lintVitalRelease

    You can do it from Gradle window

    1. Under Run tab, you will see error logs

    For me, it was wrong constraint in ConstraintLayout XML.

    0 讨论(0)
  • 2020-12-08 19:12

    File > Invalidate Caches/Restart... worked for me.

    0 讨论(0)
  • 2020-12-08 19:17
    lintOptions {
            checkReleaseBuilds false
            abortOnError false
        }
    
    0 讨论(0)
  • 2020-12-08 19:20

    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

    0 讨论(0)
提交回复
热议问题