Search code examples
androidandroid-lint

Ignoring all lint errors and warnings in Android


Is it Ok to ignore lint errors and warnings given by lint if my projects runs perfectly with no errors in my emulator? I'm asking this because I would like tu publish my app to the store (my first android app) and I'm not sure if this will cause any shut downs or any other errors...


Solution

  • If you understand the warning well enough, and are sure that it is not going to affect the App's behavior (maybe in other devices), you can go for it.

    For example even if you know, tell other-developers by comments, maybe in root build.gradle file, like:

    android {
        lintOptions {
            // TODO: remove below once we have time to update entire logic.
            disable 'some_warning_id'
        }
    }
    

    But, If you are not sure then certainly you should fix all the lint warnings. Lint error/warnings are very basic for android apps.