问题描述
我下面的文档这里安装Android SupportV7 Libary到我的项目。有两件事情,我注意到:1)当我浏览我的SDK安装目录和支持库文件夹,没有文件夹名为appcompat2)当我安装了整个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:
- 您应该重新安装你的Android支持库通过Android的SDK管理器,以获得完整的Android supportV7库。
- 在appcompat库项目的mediarouter库项目的依赖。所以,你已经完成第1步后,你可以按照Android支持库V7:错误检索父项来解决这个问题
- You should reinstall your Android Support Library by Android SDK Manager to get the complete android supportV7 library.
- 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”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!