20151227-01 [工程配置] error: Error retrieving parent for item: No resource found that matches the give
来源:互联网 发布:2016网络穿越小说 编辑:程序博客网 时间:2024/05/30 07:13
1、直接删除parent=。。。
2、
转:http://www.devdiv.com/forum.php?mod=viewthread&tid=89826&page=1#pid557155
有时候在定义自己的style文件时会报:
error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.TextView.ListSeparator.White'.
我的style定义如下:
<style name="ListSeparator" parent="@android:style/Widget.TextView.ListSeparator.White">
</style>
提示错误大体是说,找不到我继承的style。
parent="@android:style/Widget.TextView.ListSeparator.White"表示继承系统的style。
查看源码可以看到系统定义如下:
但Eclipse只能链接到Widget.TextView这一层。
可能的原因是要不sdk没有这个style或者是这个style被设置为不公开的了。
对于非public的xml属性,可以在“@”后加个"*"解决,如下:
- <item name="android:windowTitleStyle">@*android:style/Widget.TextView.ListSeparator.White</item>
- 20151227-01 [工程配置] error: Error retrieving parent for item: No resource found that matches the give
- 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
- Android应用出错 error: Error retrieving parent for item: No resource found that matches the
- 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
- Android应用出错 error: Error retrieving parent for item: No resource found that matches the
- 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 解决办法
- 在eclipse导入Java 的jar包的方法 JDBC【图文说明】
- c#_使用官方驱动操作mongodb数据库
- 武林三国将领介绍
- 蓝桥杯之杨辉三角
- web开发跨域问题个人总结(PHP与js交互)
- 20151227-01 [工程配置] error: Error retrieving parent for item: No resource found that matches the give
- COCOS学习笔记--Cocos引擎渲染流程
- 武林三国坐标
- Subsequence-二分
- Git文件状态
- python join 和 split的常用使用方法
- 对于产品经理询问新产品有何建议的答复
- 线程小结(二)
- 《开源安全运维平台-OSSIM最佳实践》已经上市