Android Library Projects Support

eugene.kudelevsky

An Android library project is a development project that holds shared Android source code and resources. Other Android application projects can reference the library project and, at build time, include its compiled sources in their .apk files. IntelliJ IDEA X supports library projects natively as separate Android library modules.

To create a new library module you need to choose a platform and specify a package:

Application module has to depend on library modules to refer to their resources and source code. Scope of this dependency should be Compile. You can refer to library resources from your application module, as they are located in the same module. Note that you can change a module type (Application or Library) in Android facet settings:

Comments below can no longer be edited.

2 Responses to Android Library Projects Support

  1. Chad says:

    November 16, 2010

    What version of IDEA are you using here? I dont see these options available on 9.0.4

  2. Larry Hamel says:

    September 7, 2011

    See http://soledadpenades.com/2011/06/17/android-library-projects-with-intellij-idea/ for exact steps

Subscribe

Subscribe for updates