I have the following lint warning:
Every Initializer needs to be accompanied by a corresponding entry in the AndroidManifest.xml
Usually, I just google or search SO for a warning and find the required keyword to suppress, e.g. tools:ignore="HardcodedText"
, but for newer warnings this doesn't always yield results.
Is there an 'official' way to find these suppress keywords? Android Studio often offers the correct suppression, where does it "look them up"?
There are 2 ways that I know of, but the steps may vary based on what kind of lint warning it is. In general you could try:
Alt+Enter
on the lint warning. (Sometimes the lint warning will also allow you to hover over it and click More Actions...
).three dots
(More Actions). Sometimes this will just be a >
.If that doesn't work you could try it like this:
Problems
tab (Command+6)Show Quick-Fixes
.three dots
(More Actions). Sometimes this will just be a >
.