How can I add a “Library Project” in IntelliJ IDEA?

前端 未结 4 476
小蘑菇
小蘑菇 2020-12-03 03:06

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 \"

相关标签:
4条回答
  • 2020-12-03 03:34

    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.

    0 讨论(0)
  • 2020-12-03 03:38

    You can have a dependency on another module in IntelliJ.

    You can import the existing Eclipse project into IntelliJ.

    You can add libraries to a module in IntelliJ.

    I'm not clear on exactly what you want to do. Can you add info to your question?

    0 讨论(0)
  • 2020-12-03 03:39

    First Remove that library then add Library project as a module ,add Module as a dependency

    0 讨论(0)
  • 2020-12-03 03:45

    For new visitors:

    Create a module from existing sources (point to the library directory inside ABS), then add android-support-v4.jar as a dependency to your project and ABS modules.

    There's also a detailed tutorial.

    0 讨论(0)
提交回复
热议问题