I would like to configure lint in Android Studio to ignore some file. I put the lint.xml file in the app / folder. Here is the contents of the lint file:
<?xml version="1.0" encoding="UTF-8"?> <lint> <issue id="UnusedResources"> <ignore path="res/drawable/background_palette_drawable_6.xml" /> </issue> </lint>
When I run lint to check for unused resources, it still finds this file as unused.
In the build.gradle application, I have:
lintOptions { disable 'InvalidPackage' abortOnError false absolutePaths false lintConfig file('lint.xml') }
I tried changing the path to the /app/src/main/res/drawable/background_palette_drawable_6.xml file and still this will not work.
I put <issue id="UnusedResources" severity="ignore"> , in which case it simply ignores all unused resources, so it seems that the lint.xml file lint.xml found correctly, but maybe something is wrong with this path ?
source share