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

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

提交回复
热议问题