如何添加另一个Eclipse项目作为库? [英] How to add another Eclipse project as a library?

查看:151
本文介绍了如何添加另一个Eclipse项目作为库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将这个 PhotoView项目用作eclipse中的图书馆项目。你可以指导我如何将这个项目添加到我的eclipse中,并将其用作另一个项目的库?

I want to use this PhotoView Project as Library project in eclipse. Can you please guide me How can I add this project into my eclipse and use it as library for my another project ?

推荐答案

是将项目作为库项目添加到工作区的一步一步的说明,

Following is step by step instruction for adding a project as Library project into your workspace,


  • 首先点击Eclipse的文件菜单,然后选择导入选项(或者您可以右键单击包资源管理器并选择导入选项)

  • 这将加载以下对话框

  • First of all click on Eclipse's file menu and select "Import" option ( or you can right click on Package Explorer and select "Import" option )
  • This will load following dialog

在这里,您可以使用现有项目进入工作区或现有的Android代码进入工作区中的任何选项导入项目(对于您的要求,您可以选择第二个导入选项)

Here you can import project using any of the option either by "Existing Project into Workspace" or by "Existing Android Code into Workspace" ( For your requirement you can choose second import option )

现在右键单击该项目并选择属性选项,这将加载以下对话框

Now right click on that project and select "Properties" option, This will load following dialog

在此可以验证是否它是图书馆的项目,如果没有,然后勾选图书馆复选框,如上图所示。

Here you can verify if it is library project or not, if not then tick on "Is Library" check box as displayed in the above image.

现在点击添加按钮进入该对话框,如下图所示

Now click on "Add" button into that dialog box like following image

这将加载另一个对话框,如下所示

This will load another dialog box like below

此对话框列出了您拥有的所有库项目。

This dialog box lists all the library projects you have.

选择您的库项目,然后单击确定按钮。

Select your library project and click on OK button.

请注意,您的图书馆项目和您的Android项目必须位于相同的位置,否则eclipse将不会加载您的图书馆项目,并会给您错误。您可以在以下图片中看到

Note that your library project and your Android Project must be at same location otherwise eclipse will not load your library project and will give you error. You can see in following image,

这篇关于如何添加另一个Eclipse项目作为库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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