Ever since upgrading to the latest appcompat library, I'm seeing a message in my logs from ViewUtils.
app:theme is now deprecated. Please move to using android:theme instead.
I'm using parent="Theme.AppCompat.Light.NoActionBar"
as my theme parent.
If you see a code block like the following in the styles file ;
Replace it.
Check your layout.
You are using a
Toolbar
where you have definedapp:theme.
Now with the support 22.1
app:theme
is deprecated. You should useandroid:theme
Check here for more info.
Replace
app:theme
toandroid:theme
but you can have a situation when you are not usingapp:theme
. Check your layout, especially toolbar layout. In my case, I didn't haveapp:theme
in my layout files. Then take a look at my situation:And I've changed this layout to:
Now I don't see the warning.
Take a look also here: https://chris.banes.me/2015/04/22/support-libraries-v22-1-0/
Great explanation by Chris Banes
I had another case where this occurred when my
Toolbar
was styled in styles.xml. It looked like this:Change
name="theme"
toname="android:theme"
and it fixed the problem.