Actionbarssherlock 和appcompat_v7 冲突报出异常,
类似于 error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
·······································
因为Actionbarssherlock下和v7包下attrs.xml下的属性名重名了;
解决方法有以下几种:
一:
- Right click on the project
- Select Android Tools from the pop up window
- Select Add Support Library
二:Remove the appcompact support library project from Properties = > Android 如果你此时在使用anctioBar等依赖于v7的话,这个就不能用了
三:
I solved this by removing appcompact from project, and changing in styles to
<style name="AppBaseTheme" parent="Theme.Sherlock">