Android的支持-V7-appcompat库项目将无法正常工作 [英] android-support-v7-appcompat library project won't work
问题描述
我想V7添加支持库到我的干净的Android项目的支持库(与资源)。我也跟着每一个指令在这里: http://developer.android.com/tools /support-library/setup.html#download 并android.support.v7。*包不是我的主要项目中可见。
I am trying to add Support Library v7 to my clean android project as support library (with resources). I followed every instruction here: http://developer.android.com/tools/support-library/setup.html#download and android.support.v7.* package is not visible in my main project.
下面是主要的项目库中引用:
Here is library reference in main project:
支持库项目树:
支持库项目构建路径:
Support library project build path:
最后,我的主要项目树
我看不出问题选项卡中的任何错误,应用程序编译和运行正常,但我无法导入android.support.v7包,这显然不是在主要项目构建路径。我通过指令洁净工程/工作区去了两次。我整理项目,重新启动Eclipse和什么...所有的库项目资源都无法访问了。
I don't see any errors in Problems tab, app compiles and runs normally but i cannot import android.support.v7 package which apparently isn't in build path in main project. I went through instruction twice in clean projects/workspace. I cleaned project, restarted Eclipse and nothing... All resources from library project are unreachable too.
在此先感谢:)
推荐答案
图书馆项目复制到文件夹在您的Android项目。
Copy the library project to the folder where your android project is.
选择文件>导入。
选择现有的Android code进入工作区,然后单击下一步。
Select Existing Android Code Into Workspace and click Next.
浏览并导入相同的偏食
在库项目导入,你可以在你的Android项目是指相同的。
Once the library project is imported you can refer the same in your android project.
这是类似于这里描述日食设立谷歌播放服务。检查第4步
This is similar to setting up google play services in eclipse described here. Check the 4th step
<一个href="http://developer.android.com/google/play-services/setup.html">http://developer.android.com/google/play-services/setup.html
这篇关于Android的支持-V7-appcompat库项目将无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!