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

后端 未结 8 1850
一向
一向 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:20

    Make sure to have jcenter() in both buildscript and allprojects in your build.gradle android{} section

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

    Based off this Post

    Edit: I removed the link because the thread is no longer there

    What you need to do is add this chunk of code to your build.gradle file in the android{} section

    lintOptions { 
        checkReleaseBuilds false
    }
    

    So like this

    android {
        ...
        lintOptions {
            checkReleaseBuilds false
        }
    }
    

    Update:

    Here is another post talking about a similar problem. It seems like there are various reasons this error can occur. While disabling the checkReleaseBuilds will work. It's recommended to find what the problem is and fix it. Most common error seems to be missing translations in the strings.xml file.

    I recommend checking out this post for more help

    Error when generate signed apk

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