1

I received this error:

all com.android.support libraries must use the exact same versionspecification (mixing versions can lead to runtme crashes). Found version 27.1.1, 26,1.0. Examples include com.android.support:animated-vector-drawable:27.1.1 and android.supoirt:customtabs:26.1.0

I have no customtabs:26... How can I solve this?

my code:

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "com.social.uk"
        minSdkVersion 15
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    implementation 'com.android.support:appcompat-v7:27.1.1' // error here
    implementation 'com.android.volley:volley:1.0.0'
    testImplementation 'junit:junit:4.12'
    implementation 'com.android.support:recyclerview-v7:27.1.1'
    implementation 'com.android.support:cardview-v7:27.1.1'
    //compile 'com.google.android.gms:play-services-appindexing:9.8.0'
    implementation 'com.android.support:design:27.1.1'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.squareup.okhttp3:okhttp:3.7.0'
    implementation 'de.hdodenhof:circleimageview:2.1.0'
    implementation 'com.google.android.gms:play-services-ads:15.0.1'
    implementation 'com.anjlab.android.iab.v3:library:1.0.+'
}
ndmeiri
  • 4,979
  • 12
  • 37
  • 45
RGS
  • 4,062
  • 4
  • 31
  • 67
  • https://stackoverflow.com/questions/42374151/all-com-android-support-libraries-must-use-the-exact-same-version-specification – Pankaj Kumar Jun 01 '18 at 11:52

1 Answers1

2

One of your other dependencies has added com.android.support:customtabs:26.1.0 internally. You can just include the updated version com.android.support:customtabs:27.1.1 to override.

Jantzilla
  • 638
  • 1
  • 7
  • 19