“Field can be converted to a local variable” message appearing when setting Android ActionBar colour August 27, 2023 by Tarik If you know you will use the variable(s), add to the top of your class: @SuppressWarnings("FieldCanBeLocal")