English 中文(简体)
如何将图书馆项目添入一个刺 to项目?
原标题:How to add a Library Project to a android project?

我设立了一个新的海底项目。 我想有一个行动条码,这样我下载了Action Bar for Anthony/strong>。 因为我想支持2.1的仪器。

说明

The action bar component is an Library Project. This means that there s no need to copy-paste resources into your own project, simply add the action bar component as a reference to any project.

我是新鲜的,这样意味着什么? 我怎么能把图书馆添入我现有的项目?

• 将图书馆输入你的剪辑工作空间:

  • file->Import-> General->Existing Project into Workspace, Next

  • 选根目录: /path/to/project

  • 项目和项目;

此时此刻,它之所以失败,是因为别无选择,下顿被拆除。

任何想法?

最佳回答
  1. File->New->Other
  2. Select Android Project
  3. Select "Create Project from existing source"
  4. Click "Browse..." button and navigate to johannilsson-android-actionbaractionbar
  5. Finish (Now action bar project in your workspace)
  6. Right-click on your project -> Properties
  7. In Android->Library section click Add
  8. select recently added project -> Ok
  9. that s it!

现在你们可以使用。

问题回答

查阅文件,说明如何在剪辑中提及图书馆项目。

从上述联系来看:

  1. In the Package Explorer, right-click the dependent project and select Properties.
  2. In the Properties window, select the "Android" properties group at left and locate the Library properties at right.
  3. Click Add to open the Project Selection dialog.
  4. From the list of available library projects, select a project and click OK.
  5. When the dialog closes, click Apply in the Properties window.
  6. Click OK to close the Properties window.

Plus to the "best answer", at step 8, if you don t see the project, go to the project what you would like to add as a library and

  • open project.properties
  • add android.library=true

并且你可以再次遵循这一指示,你应当看到适当的项目。





相关问题
In Eclipse, why doesn t "Show In" appear for non-Java files?

If I have a *java file open, I can right click on the source, scroll down to "Show In (Alt-Shift-W)", and select Navigator. If I have an *xml, *jsp, or pretty much anything besides a Java source ...

Eclipse: Hover broken in debug perspective

Since upgrading Eclipse (Galileo build 20090920-1017), hover in debug no longer displays a variable s value. Instead, hover behaves as if I were in normal Java perspective: alt text http://...

Eclipse smart quotes - like in Textmate

Happy Friday — Does anyone know if eclipse has the notion of smart quotes like Textmate. The way it works is to select some words and quote them by simply hitting the " key? I m a newbie here so be ...

Indentation guide for the eclipse editor

Is there a setting or plugin for eclipse that can show indentation guides in the editor? Something like the Codekana plugin for visual studio (not so fancy is also OK). Important that it works with ...

Adding jar from Eclipse plugin runtime tab

I want to add .jar files for plugin from the Runtime tab of manifest file. When I use the Add... button, I can see only sub-directories of the plugin project. So if I want to add same .jar file to ...

How to copy multiple projects into single folder in eclipse

I have two projects, Project1 and Project2. Now i want to copy this projects into eclipse workspace but i want these projects to be in a single folder like below. Eclipse Workspace -> Project -> ...

Java: Finding out what is using all the memory

I have a java application that runs out of memory, but I have no idea which code is allocating the memory. Is there an application with which I can check this? I use Eclipse.