首页 文章

所有com.android.support库必须使用完全相同的版本规范

提问于
浏览
1

我花了一些时间在这上面但是我仍然找不到使用sdkVersion 24animated-vector-drawable 依赖 . 我已手动尝试将所有 com.android.support 库的版本代码更改为使用版本 25 而不是 23 ,但我仍然收到错误 . 我在哪里混合版本代码?我的图书馆有可能重复吗?

我已经使用该项目清理,重建和同步了Gradles文件以及其他疑难解答提示,包括尝试从以下SOP帖子中寻求一些见解,但仍然是错误持续存在 .

参观资源:

错误:(33,13)所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃) . 找到的版本24.0.0,23.1.0 . 示例包括com.android.support:animated-vector-drawable:24.0.0和com.android.support:design:23.1.0

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '25.0.0'

    defaultConfig {
        applicationId "trip.it.co.za.tripit"
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.1.0"
        multiDexEnabled true
    }
    buildTypes {
        debug {
            resValue "string", "google_maps_api_key", "AIzaSyAiM1JxYFPr4D4igrPjFJJRXJloheKjyLs"
        }
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            resValue "string", "google_maps_api_key", "AIzaSyAiM1JxYFPr4D4igrPjFJJRXJloheKjyLs"
        }
    }
    dexOptions {
        javaMaxHeapSize "4g"
    }
}

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.0'
    compile 'com.android.support:design:23.1.0'
    //wasabeef
    compile 'com.rengwuxian.materialedittext:library:2.1.4'
    compile 'com.ogaclejapan.arclayout:library:1.0.1@aar'
    compile 'com.google.android.gms:play-services:10.0.1'
    compile 'com.android.support:design:23.0.0'
    compile 'com.rengwuxian.materialedittext:library:2.1.4'
    compile 'com.ogaclejapan.arclayout:library:1.0.1@aar'
    compile 'com.google.android.gms:play-services-ads:10.0.1'
    compile 'com.google.android.gms:play-services-auth:10.0.1'
    compile 'com.google.android.gms:play-services-gcm:10.0.1'
    compile 'com.squareup.okhttp3:okhttp:3.2.0'
    compile 'com.squareup.retrofit2:retrofit:2.0.0-beta3'
    compile 'com.github.zzz40500:AndroidSweetSheet:221317862b'
    compile 'com.google.android.gms:play-services-identity:10.0.1'
    compile 'com.android.support:recyclerview-v7:23.0.0'
    compile 'com.google.android.gms:play-services-maps:10.0.1'
    compile 'com.google.android.gms:play-services-wearable:10.0.1'
    compile 'com.google.android.gms:play-services-maps:10.0.1'
    compile 'com.android.support:multidex:1.0.1'
    compile 'de.hdodenhof:circleimageview:1.3.0'
    compile 'com.github.androidquery:androidquery:0.26.9'
}

Update:

所以我想知道这个 com.android.support:animated-vector-drawable:24.0.0 库在项目中的引用位置,但奇怪的是,在任何地方都找不到它 .

1 回答

  • 2

    我花了一些时间来理解错误消息,所以我将所有 com.android.support 库更改为最新的 v25.3.1 并添加了以下两个库:

    • com.android.support:animated-vector-drawable:25.3.1

    • com.android.support:mediarouter-v7:25.3.1

    然后我将 compileSdkVersion23 更改为 25 .

    然后我将 com.android.support:appcompat-v7:23.1.0 更改为 com.android.support:appcompat-v7:25.3.1

    一切都很开心 .

相关问题