Android : Error retrieving parent for item: No resource found that matches the given name 'Android:Theme.Material'

on Monday, August 11, 2014


I am trying to use material Theme with following code


My styles.xml file



<resources>

<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="Theme.AppCompat.Light">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>

<!-- Application theme. -->
<style name="AppTheme" parent="Android:Theme.Material">
<item name="android:colorPrimary">@color/primary</item>

</style>

</resources>


While doing this i am getting following error :



Error retrieving parent for item: No resource found that matches the given name 'Android:Theme.Material'


What is wrong with this?


0 comments:

Post a Comment