我如何添加一个"图书馆计划"在IntelliJ IDEA的? [英] How can I add a "Library Project" in IntelliJ IDEA?

查看:124
本文介绍了我如何添加一个"图书馆计划"在IntelliJ IDEA的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用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?

谢谢!

更新:什么我指的是什么,他们在这里描述 - <一个href="http://developer.android.com/guide/developing/projects/projects-eclipse.html#ReferencingLibraryProject">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.

这篇关于我如何添加一个&QUOT;图书馆计划&QUOT;在IntelliJ IDEA的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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