8

I'm logging this warning:

I/AppCompatViewInflater﹕ app:theme is now deprecated. Please move to using android:theme instead.

The curious thing is that I've used the Find in all project tool of Android Studio and it haven't found any ocurrence with app:theme.

I think it can be because I'm using the it.neokree.materialnavigationdrawer and it can have app:theme inside, but anyway, is there any way to disable this warning? Anyone has idea if it could be for another reason?

arodriguezdonaire
  • 5,396
  • 1
  • 26
  • 50

2 Answers2

9

You might have a style that contains an element like this:

<item name="theme">@style/TextInputTheme</item>

Replace with:

<item name="android:theme">@style/TextInputTheme</item>
friederbluemle
  • 33,549
  • 14
  • 108
  • 109
0

According to Seeing message in logs: "app:theme is deprecated"? change from

<android.support.v7.widget.Toolbar
    app:theme="@style/ThemeOverlay.AppCompat.ActionBar"

to

<android.support.v7.widget.Toolbar
    android:theme="@style/ThemeOverlay.AppCompat.ActionBar"
Community
  • 1
  • 1
CoolMind
  • 26,736
  • 15
  • 188
  • 224