How to remove lint errors in android studio

when i was trying to execute my android studio wear application it shows lint error.

Here is my log :

Error:Execution failed for task ':wear:lint'.
> Lint found errors in the project; aborting build.
Fix the issues identified by lint, or add the following to your build script to proceed with errors:
...
android {
    lintOptions {
        abortOnError false
    }
}

...

Upvotes: 1

Views: 13926

Answers (2)

Atul Yadav
Atul Yadav

Reputation: 174

Add this to your module level build.gradle file

> lintOptions {
>         abortOnError false
>     }

This will stop aborting of gradle if any lint error found, even though this is not recommended.

Alternatively you can just go to yourproject>app>build>results>lint_error.htmland then see errors and solve them or, you can also go for,

Analyze>Inspect Code and solve errors beforehand.

Hope this will solve your query.

Upvotes: 0

Nadir Belhaj
Nadir Belhaj

Reputation: 12073

Add this to your build.gradle file

android {
    lintOptions {
        abortOnError false
    }
}

Upvotes: 5

Related Questions