I am currently working on reducing lint warnings / errors in my Android project. I fix as much as possible, but some do not apply to my project, while others refer to third-party libraries, etc.
So, I am setting up some lint rules in the lint.xml file in my app/ so that it lint.xml automatically.
Here's a clipped version of my lint file:
<?xml version="1.0" encoding="UTF-8"?> <lint> <issue id="UnusedResources"> <ignore regexp=".*google-services.*" /> </issue> </lint>
Now these lint rules are correctly selected and work, but Android Studio selects the ignore red syntax and says that "ignoring the element is not allowed here", the same applies to all ignore tags in this XML file.
Can someone help me get rid of this annoying red?
android xml lint
Jon finerty
source share