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

来源:互联网 发布:思科交换机端口聚合 编辑:程序博客网 时间:2024/06/04 19:12

[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是好使。)

原创粉丝点击