Home » Android » android – How to fix error running ./gradlew check connectedCheck, after update AndroidStudio to 0.4.0?

android – How to fix error running ./gradlew check connectedCheck, after update AndroidStudio to 0.4.0?

Posted by: admin June 15, 2020 Leave a comment

Questions:

After the update of the AndroidStudio, I updated the gradle to 1.9 in the wrapper and to 0.7.+ in the dependencies of the build.gradle.

Since then, I get this error when running ./gradlew check connectedCheck

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:lint'.
> Lint found errors with abortOnError=true; aborting build.

EDIT

The gradle console also shows these messages:

Ran lint on variant release: 69 issues found
Ran lint on variant debug: 69 issues found
Wrote XML report to <PROJECT>/app/build/lint-results.xml
Wrote HTML report to <PROJECT>/app/build/lint-results.html
:app:lint FAILED
How to&Answers:

You should see what the lint errors are and fix them (some of these can be quite important so you should give them a look); the Gradle Console should have a more detailed error message if you don’t find anything in the error pane. If you’d like to have it not abort your build when there’s a lint error, then the error message gives you a clue what you should do: add this to your build.gradle file:

android {
    lintOptions {
        abortOnError false
    }
}

Read more: gradle build fails on lint task