关于在eclipse中导入android support design包出错的问题【不定时更新】

今天想使用TabLayout实现选项卡布局,(我用的是eclipse+ADT)不料导入android support design包的时候报错了(error: Error: No resource found that matches the given name: attr 'backgroundTint'.),style资源文件里面的backgroundTint属性无法匹配,也就是找不到该属性定义的地方。后来在stackoverflow上找到了解决方法:原因是design包是依赖于appcompat -v7库的,故需要引入该库——右击design工程 -> properties -> android -> 点击add将appcompat -v7库引入即可。


关于support design库的更多问题及其解决方案请参考:

http://stackoverflow.com/questions/26530415/error-in-styles-base-xml-file-android-app-no-resource-found-that-matches-the

http://stackoverflow.com/questions/30964009/classnotfoundexception-didnt-find-class-android-support-design-rstyleable


更多的待后续使用时遇到会一一列出。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值