After adding the library in project by all tutorial I have an error in style.xml
Error: No resources found that matches the given name: attr 'switchStyle'
Error: No resources found that matches the given name: attr 'textAppearance'
In Eclipse i can choose "clean project" and this problem disappear until next change in style.xml
<style name="AppTheme" parent="Theme.Sherlock.Light">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
<item name="switchStyle">@style/switch_light</item>
<item name="textAppearance">@style/TextAppearance</item>
<item name="android:actionBarStyle" tools:ignore="NewApi">@style/Widget.Styled.ActionBar</item>
</style>
My steps:
PS. Project is old, created in Eclipse without Gradle.
In my case problem was in dependencies of third part module from ActionBarSherlock. All trace was: - My project have dependency from ActionBarSherlock and other module which also have dependency from ABS - Project refers to style of ActionBar BUT in this third part module
The whole thing turned out to be in my inattention