I updated my project from Android 4.2 to Android 4.2.2 and I suddenly get this error in my styles.xml:
<style name="Theme.Styled" parent="Theme.Sherlock.Light.DarkActionBar">
<item name="actionBarStyle">@style/Widget.Styled.ActionBar</item>
<!-- Requires level 11. Current: 7 --> <item name="android:actionBarStyle">@style/Widget.Styled.ActionBar</item>
</style>
How do I fix this? According to the ABS docs this is how it should be done. See: http://actionbarsherlock.com/theming.html
I tried restarting, but I ultimately needed to clean the project: Click "Project->Clean..."
The error came back every time I saved my styles.xml. For now, I am setting my minimum API level to 11 temporarily while editing that file to avoid the errors, and then resetting it back down and cleaning when I want to run it on my low-API-level emulator.
Edit: If you don't like leaving your min SDK version artificially high, it also works for me to change it to 14 (some other high number), save AndroidManifest.xml, change it right back, and save again.