Janusz Janusz - 1 year ago 134
Android Question

How to ignore complete folders for lint checking with gradle?

I have an Android project that includes generated code. This code has some lint violations in it that I don't want to show up in the lint reports because we won't fix this code problems manually.

Is it somehow possible to exclude folders in the lint check?

Answer Source

Add to your project 'lint.xml' file with content as such:

<?xml version="1.0" encoding="UTF-8"?>
    <ignore path="build" />

for example to ignore build path of that project.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download