如何解决错误[否资源的发现,匹配给定的名称和QUOT;添加库V7 AppCompat当在Eclipse? [英] How to resolve the error "No resource found that matches the given name" when adding library v7 AppCompat in Eclipse?

查看:367
本文介绍了如何解决错误[否资源的发现,匹配给定的名称和QUOT;添加库V7 AppCompat当在Eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个项目目标API级别10,我想执行新的动作条支持库。 按照href="http://developer.android.com/tool​​s/support-library/setup.html">支持库设置的

I have a project target to API Level 10 and i want to implement the new ActionBar support library. After follow all the instrutions in the Support Library Setup, when adding the library to my project I came across with dozens of error messages like this:

Android的支持-V7-appcompat \水库\值-V14 \ styles_bas​​e.xml:24:错误:错误检索父项:未发现的资源匹配给定名称安卓的Widget。全息.....

OK,我知道他们有很多回答这个问题,但是,试图更加明显之后,我还是没能解决的错误。
我一直在寻找,找到了原因,这是不那么明显,至少对像我这样的新手。
我的目的是提供一个完整的答案,以帮助所有那些谁是和我一样,不掌握Android开发的所有秘密。

OK, i know that they are many answers to this question, but, after trying all the more obvious, i still could not solve the error.
I kept searching and found the cause, which is not so obvious, at least for newbies like me.
My intent is provide a full answer to help all those who are like me and do not master all the secrets of the Android development.

推荐答案

这就是你的动作条支持库做正确使用。

This is what you have to do for use the ActionBar support library correctly.

按照href="http://developer.android.com/tool​​s/support-library/setup.html">支持库设置的 这可以带来一些疑问,有一件事是将库添加到您的aplicattion项目:

Follow the instructions in the Support Library Setup - Adding libraries with resources.
One thing that can bring some doubt is add the library to your aplicattion project:

(1)在项目资源管理器中,右键单击您的项目并选择属性。
(2)在左侧窗格中选择Android系统。
(3)在日的右侧窗格中点击底部的添加
(4)选择库项目的Andr​​oid支持-V7-appcompat并点击确定。 点击确定关闭属性窗口。

(1) In the Project Explorer, right-click your project and select Properties.
(2) At the left pane select Android.
(3) At th bottom of the right pane click Add
(4) Select the library project android-support-v7-appcompat and click OK. Click OK to close the properties window.

如果你没有得到任何的错误,我提到it's全部完成。

If you not get any of the errors I mentioned it´s all done.

不过,如果你像我一样,你dont't跟着Android团队的意见,建议您始终编译使用最新的SDK源,你的错误。

However if you are like me, you dont´t followed the advice of Android team that suggests you always compile your source using the latest SDK, you get the error.

错误ocurrs因为我的项目建设目标是安卓2.3.3,需要处于以免3.0。
这是因为事实上,我专门开发针对Android 2.3.3和我使用的支持库尚不清楚给我。

The error ocurrs because my Project Build Target was Android 2.3.3 and need to be at lest 3.0.
It was not immediately clear to me because of the fact that I'm specifically developing for Android 2.3.3 and I'm using support libraries.

好了,我希望这有助于。

OK, I hope this helps.

这篇关于如何解决错误[否资源的发现,匹配给定的名称和QUOT;添加库V7 AppCompat当在Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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