avoid lint when gradle execute check avoid lint when gradle execute check android android

avoid lint when gradle execute check


You can skip it using adding -x lint when you run the check task:

./gradlew check -x lint 

If you want to skip it permanently you can add this to your build.gradle before apply plugin: 'com.android.application':

tasks.whenTaskAdded { task ->    if (task.name.equals("lint")) {        task.enabled = false    }}


I just disabled the task during project setup:

android {    lintOptions {        tasks.lint.enabled = false    }}

Note: it's not necessary to put the statement inside android.lintOptions, but since it's configuring lint, it's nice to have them together.