Skip to content Skip to sidebar Skip to footer

No Resource Found That Matches The Given Name 'android:theme.material'

After reading this answer, I made RecyclerView ran it on Android 3.0+. But styles.xml in values-v21 still causes the error. Theme. &l

Solution 1:

android:Theme.Material is supported only from API level 21. You can see the error message in android studio as below:

android.Theme.Material requires API level 21(current minis14)

Solution 2:

If you use the support library, you can safely use those attributes, and they will work (as much as the OS allows) :

<stylename="AppTheme"parent="@style/Theme.AppCompat.Light"><itemname="colorPrimary">...</item></style>

You can also use the others:

<itemname="colorPrimaryDark">...</item><itemname="colorAccent">...</item>

Post a Comment for "No Resource Found That Matches The Given Name 'android:theme.material'"