错误:错误检索父项:未发现的资源匹配给定名称“Widget.AppCompat.ActionButton” [英] error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'

查看:327
本文介绍了错误:错误检索父项:未发现的资源匹配给定名称“Widget.AppCompat.ActionButton”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下面的文档这里安装Android SupportV7 Libary到我的项目。有两件事情,我注意到: 1)当我浏览我的SDK安装目录和支持库文件夹,没有文件夹名为appcompat 2)当我安装了整个V7文件夹反正我得到这个错误:

I am following the documentation here to install the Android SupportV7 Libary into my project. There are two things that I notice: 1)When I am browsing my SDK installation directory and the Support Library folder, there is no folder named "appcompat" 2)When I install the entire V7 folder anyways I get this error:

error: Error retrieving parent for item: No resource found that matches the given name 'Widget.AppCompat.ActionButton'

我该如何解决这个问题? (注:这是在mediarouter文件夹中)

How can I fix this? (Note: this is in the mediarouter folder)

这是我所看到的浏览我的SDK安装目录时: <一href="http://tinypic.com/view.php?pic=2egehc9&s=5#.UkZqoRbnZAg">http://tinypic.com/view.php?pic=2egehc9&s=5#.UkZqoRbnZAg

This is what I see when browsing my SDK installation directory: http://tinypic.com/view.php?pic=2egehc9&s=5#.UkZqoRbnZAg

推荐答案

如果使用Eclipse的:

If use Eclipse:

  1. 您应该重新安装你的Andr​​oid支持库通过Android的SDK管理器,以获得完整的Andr​​oid supportV7库。
  2. 在appcompat库项目的mediarouter库项目的依赖。所以,你已经完成第1步后,你可以按照<一个href="http://stackoverflow.com/questions/18964902/android-support-library-v7-error-retrieving-parent-for-item">Android支持库V7:错误检索父项来解决这个问题
  1. You should reinstall your Android Support Library by Android SDK Manager to get the complete android supportV7 library.
  2. The mediarouter library project dependency on the appcompat library project. So,after you have finished Step 1, you can follow Android Support Library v7: Error retrieving parent for item to fix this problem.

这篇关于错误:错误检索父项:未发现的资源匹配给定名称“Widget.AppCompat.ActionButton”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆