我如何添加一个"图书馆计划"在IntelliJ IDEA的?图书馆、计划、QUOT、IntelliJ

2023-09-12 04:14:18 作者:独衬心酸

我用ActionBarSherlock在我开发使用Eclipse的Andr​​oid项目。我想这个项目迁移过来的IntelliJ IDEA,但我不知道怎么了图书馆计划添加到IDEA。

I'm using ActionBarSherlock in an Android project that I developed using Eclipse. I'd like to migrate that project over to IntelliJ IDEA, but I'm not sure how to add a "Library Project" to IDEA.

这是一个功能IDEA支持?如果是这样,有人可以帮我找出如何添加一个?

Is this a feature IDEA supports? If so, can someone help me figure out how to add one?

谢谢!

更新:什么我指的是什么,他们在这里描述 - Managing从Eclipse项目与ADT 。它们允许你添加一个引用到未编译项目作为库。

UPDATED: What I'm referring to is what they describe here -- Managing Projects from Eclipse with ADT. They allow you to add a reference to an uncompiled project as a "library."

推荐答案

您需要创建从现有的源$ C ​​$ C一个新的想法模块。确保Android的方面启用了这个模块,在您需要启用面设置是图书馆计划选项。然后加入这个模块作为一个依赖于主模块。

You need to create a new IDEA module from the existing source code. Ensure that Android facet is enabled for this module, in the facet settings you need to enable "Is Library Project" option. Then add this module as a dependency to your main module.