Skip to content

Development IDEs

Sean C Foley edited this page Jun 4, 2020 · 3 revisions

Importing into IDEs

Add to Intellij Project

  1. Click File from the toolbar
  2. Project Structure (CTRL + SHIFT + ALT + S on Windows/Linux, ⌘ + ; on Mac OS X)
  3. Select Modules at the left panel
  4. Dependencies tab
  5. '+' → JARs or directories
  6. Library...
  7. From Maven...
  8. Enter "ipaddress" into search bar, search
  9. After waiting for Intellij to locate ipaddress on maven, select the ipaddress version you prefer

Add to Android Studio 3.5 Project

Android Studio is derived from Intellij, so the process is similar. You can get IPAddress from JCentral, one of Android Studio's default java repositories.

  1. Click File from the toolbar
  2. Project Structure (CTRL + SHIFT + ALT + S on Windows/Linux, ⌘ + ; on Mac OS X)
  3. Select Modules in the left panel, and app under modules, in the dialogs for Source and Target Compatibility choose 1.8 (Java 8)
  4. Select Dependencies at the left panel, and app under modules
  5. Select '+' under Declared Dependencies
  6. Choose Library Dependency
  7. In the Add Library Dependency dialog, enter "ipaddress" into search bar, search
  8. After waiting for Android Studio to locate ipaddress on maven, select the ipaddress version you prefer
  9. You need to run on API level 24 or higher

Add to Eclipse Project

  1. From the toolbar click Window -> Show View -> Other
  2. In the Show View window, open Maven -> Maven Repositories
  3. In the window that appears, under "Global Repositories", right-click on "central (http://repo.maven.apache.org/maven2)" and select "Rebuild Index"
  4. It will take a while to build the index
  5. Once indexing is complete, if the project is not a Maven project, in the package explorer view, right-click on the project name -> configure -> convert to Maven project
  6. In the package explorer view, right-click on the project name -> Maven -> Add Dependency
  7. In the search box halfway down, type "ipaddress"
  8. After waiting for Eclipse to locate ipaddress in the index, select the ipaddress version you prefer, click OK