-
Notifications
You must be signed in to change notification settings - Fork 63
Development IDEs
Sean C Foley edited this page Jun 4, 2020
·
3 revisions
- Click File from the toolbar
- Project Structure (CTRL + SHIFT + ALT + S on Windows/Linux, ⌘ + ; on Mac OS X)
- Select Modules at the left panel
- Dependencies tab
- '+' → JARs or directories
- Library...
- From Maven...
- Enter "ipaddress" into search bar, search
- After waiting for Intellij to locate ipaddress on maven, select the ipaddress version you prefer
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.
- Click File from the toolbar
- Project Structure (CTRL + SHIFT + ALT + S on Windows/Linux, ⌘ + ; on Mac OS X)
- Select Modules in the left panel, and app under modules, in the dialogs for Source and Target Compatibility choose 1.8 (Java 8)
- Select Dependencies at the left panel, and app under modules
- Select '+' under Declared Dependencies
- Choose Library Dependency
- In the Add Library Dependency dialog, enter "ipaddress" into search bar, search
- After waiting for Android Studio to locate ipaddress on maven, select the ipaddress version you prefer
- You need to run on API level 24 or higher
- From the toolbar click Window -> Show View -> Other
- In the Show View window, open Maven -> Maven Repositories
- In the window that appears, under "Global Repositories", right-click on "central (http://repo.maven.apache.org/maven2)" and select "Rebuild Index"
- It will take a while to build the index
- 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
- In the package explorer view, right-click on the project name -> Maven -> Add Dependency
- In the search box halfway down, type "ipaddress"
- After waiting for Eclipse to locate ipaddress in the index, select the ipaddress version you prefer, click OK