Error retrieving parent for item: No resource found that matches the given name
来源:互联网 发布:建筑工程量计算软件 编辑:程序博客网 时间:2024/04/29 13:38
当你的androidAPI 由2.1版本更换成2.2版本时:
error: Error retrieving parent for item: No resource found that matches the given name 'android:WindowTitle'.
从而导致我们的程序无法编译通过。
原因:
android2.1中的某些API(包括类方法或者XML属性)更换成android2.2时,它们的路径已经发生了改变,从而导致编译器无法找到它们,所以编译无法通过。
1. 在Eclipse中打开任意一个.java文件,输入
2. 回到报错的res/values/styles.xml, 将<style name="XWindowTitle" parent="">
关于Styles and Themes 之间的关系,请参考官方网站
http://developer.android.com/guide/topics/ui/themes.html
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Wind
- error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCo
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Them
- 解决error: Error retrieving parent for item: No resource found that matches the given name 'AppCompat'
- 解决error: Error retrieving parent for item: No resource found that matches the given name 'android:
- error: Error retrieving parent for item: No resource found that matches the given name 解决方法1
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Win
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.App
- error: Error retrieving parent for item: No resource found that matches the given name 解决办法
- error: Error retrieving parent for item: No resource found that matches the given name 'android:Wind
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCom
- Copy List with Random Pointer 复制有随机指针的链表@LeetCode
- XML Parser(Tinyxml)的使用
- WINCE TOC解析 文章1
- Universal–Image–Loader 使用
- 2013 Asia Chengdu Regional Contest
- Error retrieving parent for item: No resource found that matches the given name
- 使用PyInstaller2将Python脚本转化为可执行文件
- Eclipse插件安装方法
- Android 判断SD卡是否存在及容量查询
- 说说usb suspend/resume
- UIKit Function Reference
- JQuery Object vs. DOM element
- c#write和 writeline read和 readline 的区别
- ASP.NET配置文件Web.config 详细解释(转)