error: Error: No resource found that matches the given name: attr 'buttonBarButtonStyle'
android, styles, themes
Solution
`buttonBarStyle` is for versions 11 and above as you state in your SDK but you are using `android:minSdkVersion="8"`. Isn't it supposed to work for `android:minSdkVersion="11"`?
Problem
I write a theme in styles.xml file like below ``` <?xml version="1.0" encoding="utf-8"?> <resources> <!-- Root styles that vary by API level --> <style name="FrameworkRoot.Theme" parent="Theme.Sherlock.Light.DarkActionBar"> <!-- API 11+ (compatibility) --> <item name="buttonBarStyle">@style/Compat.ButtonBar</item> <item name="buttonBarButtonStyle">@style/Compat.ButtonBarButton</item> <item name="indeterminateProgressStyle">@style/Compat.IndeterminateProgress</item> <!-- API 14+ (compatibility) --> <item name="listPreferredItemPaddingLeft">@dimen/compat_list_preferred_item_padding_left</item> <item name="listPreferredItemPaddingRight">@dimen/compat_list_preferred_item_padding_right</item> <item name="listPreferredItemHeightSmall">@dimen/compat_list_preferred_item_height_small</item> </style> ``` but get the error: Error: No resource found that matches the given name: attr 'buttonBarStyle'. I get the code from the google io2012. Both mine and its' all base ``` <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="16" /> ``` I can compile the google io2012's source code but not mine. so strange. is anybody know why? or have the same question?