0

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>
Community
  • 1
  • 1
Chimpanse
  • 250
  • 1
  • 5
  • 17

1 Answers1

1

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">
Rod_Algonquin
  • 26,074
  • 6
  • 52
  • 63
  • well, the reason i posted this question was because i want to use the support librarys. Should i not use them though? If i should how do i solve this problem using the appCompat librarys? Thanks for answering, really appreciate it :) – Chimpanse Jul 20 '14 at 01:00
  • @OscarJunker you are actually using the support library.. in your class try to import android.support.*; if it is not saying any error then you are currently using the support library – Rod_Algonquin Jul 20 '14 at 01:03
  • @OscarJunker so you are using support library no need to implement the theme for AppCompat – Rod_Algonquin Jul 20 '14 at 03:08
  • could you please explain this in more depth, i'm not sure i understand :) – Chimpanse Jul 20 '14 at 15:03
  • @OscarJunker you said that you only need support library which by default you already have when you create a project. – Rod_Algonquin Jul 20 '14 at 17:34