I'm currently working on reducing the lint warnings/errors in my Android project. I'm fixing as many as possible, but some don't apply to my project and others come from 3rd party libraries etc.
So I'm setting up some lint rules in a lint.xml
file within my app/
so that it gets automatically picked up.
Here's a cut down 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 picked up correctly and work, but Android Studio is syntax highlighting ignore
red, and saying "Element ignore is not allowed here", the same is true of all the ignore tags in this xml file.
Can anyone help me get rid of this annoying red?
This issue is described here: https://code.google.com/p/android/issues/detail?id=200884
It is fixed in Android Studio 2.2, which was released today!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With