码迷,mamicode.com
首页 > 其他好文 > 详细

error: Error retrieving parent for item: No resource found that matches the given name

时间:2015-08-11 21:33:33      阅读:203      评论:0      收藏:0      [点我收藏+]

标签:

‘android:Widget.Material.ActionButton‘.更新SDK包之后,新建工程多了个appcompat_v7,但是报错,报错在res资源文件values-v21文件夹的styles_base.xml文件中,错误项是 


<style name="Base.Widget.AppCompat.ActionButton"
parent="android:Widget.Material.ActionButton">
</style>
说No resource found that matches the given name 
‘android:Widget.Material.ActionButton‘



右键项目properties——android——选择android5.0.1,选project——clean,生成R.java,但appcompat_v7还报错。
右键appcompat_v7,选properties——android——选择android5.0.1,选project——clean,错误消失。

版权声明:本文为博主原创文章,未经博主允许不得转载。

error: Error retrieving parent for item: No resource found that matches the given name

标签:

原文地址:http://blog.csdn.net/u012938203/article/details/47426371

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!