eclipse 无法添加支持库 v7 AppCompat
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19877977/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Can't add support library v7 AppCompat
提问by Ivan Podhornyi
I can't add support lib v7 appCompat
. I do step-by-step like this: enter link description here(see Adding libraries with resources for Eclipse
). And when i do this, i have next:
我无法添加支持 lib v7 appCompat
。我是这样一步一步地做的:在此处输入链接描述(请参阅为 使用资源添加库Eclipse
)。当我这样做时,我有下一个:
is ...extras\android\support\v7\appcompat\src
folder must be empty?
被...extras\android\support\v7\appcompat\src
夹必须为空?
i try to remove ...extras\android\support
folder from disk and download via Android SDK manager
in Eclipse, but it doesn't help me.
我尝试...extras\android\support
从磁盘中删除文件夹并通过Android SDK manager
Eclipse下载,但这对我没有帮助。
What i do wrong?
我做错了什么?
采纳答案by Ivan Podhornyi
After i re-install eclipse, android SDK all works fine with support lib v7.
在我重新安装 eclipse 后,android SDK 在支持 lib v7 的情况下一切正常。
回答by Rahul Gupta
To add v7-support jar, go to build path, and add the respective jar To add missing source, go to build path - libraries. Expand your support jar. There you will see source attachment (None). click it and then click edit and add the path for the source which is i guess in the extras folder.
要添加 v7-support jar,请转到构建路径,然后添加相应的 jar 要添加缺少的源,请转到构建路径 - 库。展开您的支持罐。在那里你会看到源附件(无)。单击它,然后单击编辑并添加源的路径,我猜是在 extras 文件夹中。
回答by irmdaen
I just had exactly the same problem, see Cannot add android.support.v7 to my project build path.
我只是遇到了完全相同的问题,请参阅无法将 android.support.v7 添加到我的项目构建路径。
First part of the solution was to download 4.2.2. Second was to check "Copy the project in your workspace", when I imported the support-library!
解决方案的第一部分是下载 4.2.2。其次是当我导入支持库时选中“复制工作区中的项目”!
回答by Sripathi
Have you included v4 Support Library? Please make sure of that. Because v7 appcompat library depends on v4 Support Library.
您是否包含了 v4 支持库?请确保这一点。因为 v7 appcompat 库依赖于 v4 支持库。
Follow the link for documentation,
按照文档链接,
http://developer.android.com/tools/support-library/features.html#v7-appcompat
http://developer.android.com/tools/support-library/features.html#v7-appcompat