“Field can be converted to a local variable” message appearing when setting Android ActionBar colour

If you know you will use the variable(s), add to the top of your class:

@SuppressWarnings("FieldCanBeLocal")

Leave a Comment