简体   繁体   English

在Eclipse项目中包含recyclerview库(无法查看要包含在我的项目中的库项目)

[英]Including recyclerview library in Eclipse project (can't see the library project to include in my project)

I'm trying include v7 recyclerview library in my application project. 我正在尝试在我的应用程序项目中包含v7 recyclerview库。
I followed these steps https://developer.android.com/tools/support-library/setup.html#add-library 我按照以下步骤https://developer.android.com/tools/support-library/setup.html#add-library

I imported v7 recyclerview library using Import Existing Android Code Into Workspace and included ndroid-support-v7-recyclerview.jar file to the build path . 我使用导入现有的Android代码导入工作区进口V7 recyclerview库和包括 ndroid支持-V7-recyclerview.jar 文件添加到构建路径

图书馆项目
But when I'm trying to include the library to my project after clicking the add button there is no library to include: 但是当我在单击添加按钮后尝试将库包含到我的项目中时,没有要包含的库:

From Android developer site: 来自Android开发者网站:
Add the library to your application project: 将库添加到您的应用程序项目:

  • In the Project Explorer, right-click your project and select Properties. 在Project Explorer中,右键单击项目,然后选择“属性”。

  • In the category panel on the left side of the dialog, select Android. 在对话框左侧的类别面板中,选择Android。

  • In the Library pane, click the Add button. 在“库”窗格中,单击“添加”按钮。
  • Select the library project and click OK. 选择库项目,然后单击“确定”。 For example, the appcompat project should be listed as android-support-v7-appcompat. 例如,appcompat项目应列为android-support-v7-appcompat。 (<- here i don't see the TestActivity) (< - 这里我没看到TestActivity)
  • In the properties window, click OK. 在属性窗口中,单击“确定”。

Make sure the recyclerview library is marked as "Library" in Project Properties -> Android -> Is Library (checked) . 确保在Project Properties - > Android - > Is Library(选中)中将recyclerview库标记为“Library”。 Once it's marked you will be able to see it in the list when you press Add button. 标记后,当您按“ 添加”按钮时,您将能够在列表中看到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM