Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Widget.ActionBar.Title'

前端 未结 7 1240
我寻月下人不归
我寻月下人不归 2020-12-02 18:09

I am implementing ActionBar to set the color for text using this style script in xml but getting error when I run my application time does anybody have idea what I have miss

相关标签:
7条回答
  • 2020-12-02 18:32

    AndroidManifest.xml:

    <uses-sdk
        android:minSdkVersion=...
        android:targetSdkVersion="11" />
    

    and

    Project Properties -> Project Build Target = 11 or above

    These 2 things fixed the problem for me!

    0 讨论(0)
  • 2020-12-02 18:36

    This happens because in r6 it shows an error when you try to extend private styles.

    Refer to this link

    0 讨论(0)
  • 2020-12-02 18:37

    I tried to change target sdk to 13 but does not works!! then when I changed compileSdkVersion 13 to compileSdkVersion 14 is compiled successfully :)

    NOTE: I Work with Android Studio not Eclipse

    0 讨论(0)
  • 2020-12-02 18:38

    TextAppearance.Holo.Widget.ActionBar.Title appears to have been added in API Level 13. Make sure your build target is set to 13, not just 11.

    0 讨论(0)
  • 2020-12-02 18:50
    <style name="Theme.IOSched" parent="android:style/Theme.Holo.Light">
        <item name="android:windowBackground">@drawable/window_background</item>
        <item name="android:actionBarStyle">@style/ActionBar</item>
    </style>
    

    you can not give your own color and backgroud in item windowBackground. give your color in your /color.xml file.

    0 讨论(0)
  • 2020-12-02 18:50

    This is an old post, but if anyone comes up with this problem, i post what solved my problem:

    I was trying to add the Action Bar Sherlock to my proyect when i get the error:

    Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Holo.ActionBar'.
    

    I turns out that the action bar sherlock proyect and my proyect had differents minSdkVersion and targetSdkVersion. Changing that parameters to match in both proyect solved my problem.

    <uses-sdk android:minSdkVersion="7" android:targetSdkVersion="17"/>
    
    0 讨论(0)
提交回复
热议问题