导入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
类似于 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">
相关文章推荐
- Eclipse导入support-v7-AppCompat问题解决办法
- 关于android-support-v7-appcompat.jar的使用的一些问题和解决方法
- 导入android-support-v7-appcompat出现问题: android:Widget.Material.ActionButton
- 重装Eclipse(或者更新ADT)出现 appcompat _v7问题解决方法与问题剖析
- 导入android-support-v7-appcompat出现问题: android:Widget.Material.ActionButton
- 解决新版eclipse/ADT中新建Android工程出现多个appcompat_v7的问题
- 新版ADT在eclipse下创建Android工程时多出appcompat_v7的错误问题解决办法
- Android 新建项目 appcompat-v7 包出错 的解决方法
- adt新建项目后去掉appcompat_v7的解决方法
- Android类app的安全问题造成漏洞的原因以及解决方法
- Failed to resolve: com.android.support:appcompat-v7:21.的解决方法
- 桌面组件Appwidget的应用实例以及导入第三方jar包的问题解决
- Android adt v22.6.2-1085508 自动创建 appcompat_v7 解决方法,最低版本2.2也不会出现
- Android 导入 android-support-v7-appcompat 包问题
- android-support-v7-appcompat.jar 的安装及相关问题解决
- 完美解决 SlidingMenu appcompat_7的冲突问题
- Android adt v22.6.2-1085508 自己主动创建 appcompat_v7 解决方法,最低版本号2.2也不会出现
- Android4.4建工程时多生成appcompat_v7问题解决
- 2014-10-22遇到的问题----Android创建第一个项目出现appcompat_v7工程的解决办法
- Java解决在浏览器地址栏中输入url访问action的问题以及拦截方法过滤的简易实现