关闭

"error: Error retrieving parent for item: No resource found that matches" 错误的解决方法

4907人阅读 评论(0) 收藏 举报
分类:

[2013-12-02 17:30:27 - OPD_slidingmenuDemo] D:\workspace\OP_actionbarsherlock\res\values-v11\abs__themes.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
[2013-12-02 17:30:27 - OPD_slidingmenuDemo] D:\workspace\OP_actionbarsherlock\res\values-v11\abs__themes.xml:6: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
[2013-12-02 17:30:27 - OPD_slidingmenuDemo] D:\workspace\OP_actionbarsherlock\res\values-v14\abs__themes.xml:4: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo'.
[2013-12-02 17:30:27 - OPD_slidingmenuDemo] D:\workspace\OP_actionbarsherlock\res\values-v11\abs__themes.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
[2013-12-02 17:30:27 - OPD_slidingmenuDemo] D:\workspace\OP_actionbarsherlock\res\values-v11\abs__themes.xml:10: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
[2013-12-02 17:30:27 - OPD_slidingmenuDemo] D:\workspace\OP_actionbarsherlock\res\values-v14\abs__themes.xml:6: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
[2013-12-02 17:30:27 - OPD_slidingmenuDemo] D:\workspace\OP_actionbarsherlock\res\values-v14\abs__themes.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light.DarkActionBar'.
[2013-12-02 17:30:27 - OPD_slidingmenuDemo] D:\workspace\OP_actionbarsherlock\res\values-v14\abs__themes.xml:14: error: Error: No resource found that matches the given name: attr 'android:actionBarWidgetTheme'.
[2013-12-02 17:30:27 - OPD_slidingmenuDemo] D:\workspace\OP_actionbarsherlock\res\values-v14\abs__themes.xml:22: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.
[2013-12-02 17:30:27 - OPD_slidingmenuDemo] D:\workspace\OP_actionbarsherlock\res\values-v14\abs__themes.xml:26: error: Error: No resource found that matches the given name: attr 'android:windowActionBar'.

上面类似错误的解决方法:

把你例子中manifest文件里面的的 <uses-sdk android:minSdkVersion="7" /> 缺少android:targetSdkVersion="15" 这个标签。加上,跟引用lib工程的一致。

再有把你project.properties文件里面的target=android-15设置成与targetSDKVersion一致。(这两个设置成3.0版本的应该就好使。我设置成13是好使。)

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:14616次
    • 积分:234
    • 等级:
    • 排名:千里之外
    • 原创:8篇
    • 转载:6篇
    • 译文:0篇
    • 评论:2条
    文章分类