您的位置:首页 > 移动开发

导入Actionbarssherlock 和appcompat_v7 冲突的问题以及解决方法

2015-01-10 10:07 537 查看
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">
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
相关文章推荐