-
Do one of the following:
- Start creating a project from scratch. In the Selector pane on the Main Settings page of the wizard, choose Library Module under the Android node.
- Start adding a module to an existing project. In the Selector pane on the Main Settings page of the wizard, choose Library Module under the Android node.
- If you are creating a project from scratch, specify the common project settings.
- Specify the name of the application and the destination package to store the application classes in.
- Click Finish.
- Open the settings of the module with contents to be shared.
- Click the Android facet node.
- On the Android Facet page, select the Library project check box.
- On the main menu, choose .
- On the first page of the Add Module wizard, choose the Import existing module option, and click Next.
- In the dialog that opens, specify the fully qualified name of the module file (*.iml), and click Finish.
-
Add dependencies on the imported library module to the modules where you want to use its data:
- Open the settings of the required non-library module ().
-
In the Dependencies tab, click the Add button
,
then choose Module Dependency on the context menu.
- In the Choose Modules dialog box that opens, select the imported library module from the list.
- Click OK to return to the Project Structure dialog box. Confirm the added dependency by clicking OK.

that hold shared Android source code and resources.
Other Android application projects can reference a library project
and include its compiled sources in their