Configuring lint checking in Java and XML source files

suggest change

You can disable Lint checking from your Java and XML source files.

Configuring lint checking in Java

To disable Lint checking specifically for a Java class or method in your Android project, add the @SuppressLint annotation to that Java code.


public void onCreate(Bundle savedInstanceState) {

To disable checking for all Lint issues:


Configuring lint checking in XML

You can use the tools:ignore attribute to disable Lint checking for specific sections of your XML files.

For example:


To suppress checking for all Lint issues in the XML element, use


Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents