【问题标题】:gradle Found version error [duplicate]gradle发现版本错误[重复]
【发布时间】:2018-11-11 13:08:29
【问题描述】:

我收到了这个错误:

所有 com.android.support 库必须使用完全相同的 版本规范(混合版本可能导致 runtme 崩溃)。 找到版本 27.1.1、26,1.0。例子包括 com.android.support:animated-vector-drawable:27.1.1 和 android.supoirt:customtabs:26.1.0

我没有自定义标签:26... 我该如何解决这个问题?

我的代码:

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.+'
}

【问题讨论】:

标签: android android-studio


【解决方案1】:

您的其他依赖项之一已在内部添加了com.android.support:customtabs:26.1.0。您可以只包含更新版本com.android.support:customtabs:27.1.1 来覆盖。

【讨论】:

    猜你喜欢
    • 2020-11-01
    • 2014-02-11
    • 1970-01-01
    • 2016-12-26
    • 1970-01-01
    • 2016-04-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多