导入项目工程后报错:
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 解决了这个问题。