Skip to content
JaySoyer edited this page May 25, 2015 · 3 revisions

Gradle Dependency

The recommended way to obtain the library is via the AAR in jCenter.

dependencies {
    compile 'com.jaysoyer.lib:advanced-adapters:15.3'
}

Module Import

Alternatively, you can clone then import the module directly. For purposes of these instructions, {AA} will be the path to the Advanced-Adapters repo.

  1. Open an existing project which you would like to use Advanced-Adapters with.
  2. Select File -> Import Module
  3. Select {AA}/lib
  4. You are now ready to use Advanced-Adapters

Trouble Shooting

Unfortunately the module import process isn't always 100% perfect. Here are some trouble shooting steps to take if you are running into issues.

  1. Open the Project Structure window: File -> Project Structure...
  2. On the left column, under Modules; select app (or the equivalent name of your main application)
  3. Under Properties tab: Ensure source and target compatibility are set to 1.7
  4. Under Properties tab: Take note of the Build Tools Version
  5. On the left column, under Modules; select lib (or the equivalent name used for the Advanced-Adapters module)
  6. Under Properties tab: Ensure the Build Tools Version matches that of your apps.
  7. Under Properties tab: Ensure source and target compatibility are set to 1.7
  8. Ensure your project's settings.gradle file has the module name listed in the include statement. Eg: include: ':app', ':lib'

If you don't even see the module listed in the Project Structure window, then chances are the Advanced-Adapter's repo is using an incompatible gradle build version with that of your apps. You'll need to manually fix the build.gradle file.

  1. Open {AA}/build.gradle in a text editor.
  2. Under dependencies ensure the gradle version matches what you are using in your app's project. You'll need to re-import the module then if any changes were made.

If your app is using an older version of gradle then Advanced-Adapters, it's advised to update your apps gradle build version instead of downgrading the library's.

Clone this wiki locally