Using an old version of the support library in one of the dependencies

The following is the output of app dependencies: depend

+--- com.android.support:appcompat-v7:23.2.1
|    +--- com.android.support:support-v4:23.2.1
|    |    \--- com.android.support:support-annotations:23.2.1
|    +--- com.android.support:animated-vector-drawable:23.2.1
|    |    \--- com.android.support:support-vector-drawable:23.2.1
|    |         \--- com.android.support:support-v4:23.2.1 (*)
|    \--- com.android.support:support-vector-drawable:23.2.1 (*)
+--- com.android.support:design:23.2.1
|    +--- com.android.support:support-v4:23.2.1 (*)
|    +--- com.android.support:appcompat-v7:23.2.1 (*)
|    \--- com.android.support:recyclerview-v7:23.2.1
|         +--- com.android.support:support-v4:23.2.1 (*)
|         \--- com.android.support:support-annotations:23.2.1
+--- com.jakewharton:butterknife:7.0.1
+--- project :library
|    +--- com.android.support:appcompat-v7:22.2.0 -> 23.2.1 (*)
|    \--- com.android.support:recyclerview-v7:22.2.0 -> 23.2.1 (*)
\--- org.jooq:joor:0.9.5

As you can see, my library depends on support for lib 22.2.0. How can I make my project libraryuse 22.2.0 instead of 23.2.1. My application does not work 23.2.1. Is there a way to compile libraryseparately with the old version of the support library?

My dependencies look like this:

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.android.support:design:23.2.1'
    compile 'com.jakewharton:butterknife:7.0.1'
    compile project(':library')
    compile 'org.jooq:joor:0.9.5' 
}
+4
source share
1 answer

Not sure if this will help you, but I had a similar problem with the new version of the library causing the problems, so I forced to use the old one.

When you define your dependencies, try:

    compile('com.android.support:design:22.2.0'){
    force = true
    }

    compile('com.android.support:design:22.2.0') {
    force = true
    }

Hope this helps.

+2

All Articles