This will guide you through adding the JUMP library to your Android IntelliJ project.
- Open IntelliJ, and in the project pane, right-click a module and select Open Module Settings.
- In the leftmost pane, under Project Settings, select Modules.
- Set the Project SDK to Android 3.2 or higher (your project is still deployable to Android 1.6+. This setting controls the Android SDK against which your project is compiled. It does not control the Android version your project targets. You may still target down to Android 1.6.
- Add a module by clicking the + button, just to the right of the Project Settings pane.
- Select New > Module.
- Select Import existing module.
- Click the file chooser button (...), browse to the
Jump.iml
file found underjump.android/Jump/Jump.iml
, then click Finish. - In the list of modules (the second pane from the left, to the right of the Project Settings pane), expand the Jump module folder (don't worry if it's underlined and red; this will go away shortly).
- Click the Android facet, immediately below the Jump folder.
- Ensure that Library Module is selected.
- In the list of modules (the second pane from the left), select your application's module.
- Select the Dependencies tab of your application's module.
- At the bottom of the Dependencies pane click the + button, and then choose Module Dependency.
- Select Jump, click OK. Ensure that the new dependency's Scope is set to Compile.
- Under Project Settings, click Libraries.
- Add a library by clicking the + box just to the right of the Project Settings pane, then choose Java in the New Project Library popup window.
- Browse to
.../jump.android/Jump/libs
, then selectandroid-support-v4.jar.
- In the Choose modules dialog, click Cancel. (The library dependency already exists; the library only needs to be defined.) Ensure that library is still created even though you clicked cancel.
- Ensure that the new library's name is android-support-v4.
- Click OK to close the Project Structure settings window. Further IDE support is available through the Engage for Android support forum.