ndroid-support-v7-appcompat调用报错

导入项目工程后报错:
1:  

F:\AndroidWorkSpace\android-support-v7-appcompat\res\values-v21\styles_base.xml:75: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
F:\AndroidWorkSpace\android-support-v7-appcompat\res\values-v21\styles_base.xml:79: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
 F:\AndroidWorkSpace\android-support-v7-appcompat\res\values-v21\styles_base.xml:84: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
F:\AndroidWorkSpace\android-support-v7-appcompat\res\values-v21\styles_base.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
 F:\AndroidWorkSpace\android-support-v7-appcompat\res\values-v21\styles_base.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
 F:\AndroidWorkSpace\android-support-v7-appcompat\res\values-v21\styles_base.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.


网上有相关的解答, 意思无外乎:  没有v7 下的资源, sdk\extras\android\support\v7\appcompat,把这个library通过eclipse导入(import)。然后之前的项目添加该lib,再clean下。基本上就可以了。
我这么做也解决了这个问题。。 

2:  

Description Resource Path Location Type

The container 'Android Dependencies' references non existing library 'E:\workspace\android-support-v7-appcompat\bin\android-support-v7-appcompat.jar' KaiYuanDriver Build path Build Path Problem 


但是这个问题没有解决, 大致意思是: 在v7 lib 包的bin 中没有: v7 .jar  包

然后我拷贝了一份进去也没有用。

最后把jdk 版本1.6换成1.7 解决了这个问题。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值