Disable Gradle dependency to support support library from being overridden by a newer version

In my build.gradleI have a support library as a dependency, as can be seen from the article here, for revision 19.

compile 'com.android.support:support-v4:19.1.+

Revision 21 introduced support for Material Design. I do not want to use Material Design in this case here, this is normal. The problem is due to use Fabric SDK:

I turned on their Maven repository maven { url 'https://maven.fabric.io/repo' }and compiled Twitter dependencies:

compile('com.twitter.sdk.android:twitter:1.0.0@aar') {
    transitive = true;
}

compile('com.twitter.sdk.android:twitter-core:1.0.0@aar') {
    transitive = true;
}

Now it happens that I get the support library in edition 21. What happened here? Does Fabric SDK use the neweset support library?

How can I get him to revise 19 anyway?

+4
2

Android .

compile('com.twitter.sdk.android:twitter:1.0.0@aar') { 
       transitive = true; 
       exclude module: 'support-v4' 
}

, , .

+9

build.gradle

android {
    compileSdkVersion 19
    buildToolsVersion "19.1"

, , API 19 SDK.

-1

All Articles