Android studio 2.3.3: lint options, factory reset

623 views Asked by At

Not long time ago I checked all the lint options in Android Studio. I thought they were only meant for analyze->inspect code and while working with the project I worked on, it was ok.

Now I started a new project and it's affecting it completely, giving me a lot of lint warnings that sometimes contradict one another.

When I checked it manually in my previous project, I could ignore them but now I have a lot of Yellow marks in my code.

How can I factory reset the lint options of Android studio? There is "reset to default settings" but I think I ruined the defaults. If it's not possible, is there a default lint.xml that I can force it to use?

Please help, I'm drowning with Yellows... Thanks

EDIT: I downloaded Android Studio from scratch, reopen the project and the Yellow marks are still there...

2

There are 2 answers

0
Amos On

Eventually I ended up renaming the project's original folder, downloaded Android Studio from the internet, created a new project and copied the relevant files/code from the original folder. Now it's back to normal.

3
IntelliJ Amiya On

This can be done in your module-level build.gradle file. Add the following lintOption inside your android closure .

The lint tool checks your Android project source files for potential bugs and optimization improvements for correctness, security, performance, usability, accessibility, and internationalization .

       lintOptions {
          abortOnError false //Whether lint should set the exit code of the process if errors are found
      }