-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
The recommended way to obtain the library is via the AAR in jCenter.
dependencies {
compile 'com.jaysoyer.lib:advanced-adapters:15.3'
}
Alternatively, you can clone then import the module directly. For purposes of these instructions, {AA} will be the path to the Advanced-Adapters repo.
- Open an existing project which you would like to use Advanced-Adapters with.
- Select File -> Import Module
- Select {AA}/lib
- You are now ready to use Advanced-Adapters
Unfortunately the module import process isn't always 100% perfect. Here are some trouble shooting steps to take if you are running into issues.
- Open the Project Structure window: File -> Project Structure...
- On the left column, under Modules; select app (or the equivalent name of your main application)
- Under Properties tab: Ensure source and target compatibility are set to 1.7
- Under Properties tab: Take note of the Build Tools Version
- On the left column, under Modules; select lib (or the equivalent name used for the Advanced-Adapters module)
- Under Properties tab: Ensure the Build Tools Version matches that of your apps.
- Under Properties tab: Ensure source and target compatibility are set to 1.7
- Ensure your project's settings.gradle file has the module name listed in the
includestatement. 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.
- Open {AA}/build.gradle in a text editor.
- 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.