Reputation: 350
Full error:
Error:Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.AppCompat.Light.ActionBar'.
I'm trying the change the color of the action bar, i referenced to http://android-developers.blogspot.in/2013/08/actionbarcompat-and-io-2013-app-source.html.
I have tried increasing the minimum api but that dosn't help.
I have also looked at this question: Can't Find Theme.AppCompat.Light for New Android ActionBar Support
But i don't know how to do that in Android Studio
<!-- Customize your theme here. -->
<style name="Theme.Styled" parent="@style/Theme.AppCompat.Light">
<!-- Setting values in the default namespace affects API levels 7-13 -->
<item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>
</style>
<style name="Widget.Styled.ActionBar" parent="@android:style/Widget.AppCompat.Light.ActionBar">
<item name="android:background">0xff5a00</item>
</style>
Upvotes: 0
Views: 1268
Reputation: 26198
That means that you are not using AppCompat library, instead use the native ActionBar style.
sample:
<style name="Widget.Styled.ActionBar" parent="@android:style/Widget.Holo.Light.ActionBar">
Upvotes: 1