簡體   English   中英

android.support 庫必須使用完全相同的版本規范

[英]android.support libraries must use the exact same version specification

我正在研究谷歌地圖。 當我嘗試添加以下依賴項時,出現此錯誤。 android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 23.2.1, 23.0.0. Examples include android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 23.2.1, 23.0.0. Examples include com.android.support:animated-vector-drawable:23.2.1 and com.android.support:mediarouter-v7:23.0.0

我在這一行中收到錯誤compile 'com.android.support:appcompat-v7:23.2.1'

這是我的畢業證書:

    apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion '25.0.0'

    defaultConfig {
        applicationId "gs.app.lugmah"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 3
        versionName "1.2"
        multiDexEnabled true
    }
    buildTypes {
        release {
            minifyEnabled true
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }

    lintOptions {
        xmlReport false
        warningsAsErrors true
        quiet false
        showAll true
        disable 'OldTargetApi', 'UnusedAttribute', 'LongLogTag'
    }
}
dependencies {
    testCompile 'junit:junit:4.12'
    compile 'com.google.android.gms:play-services:9.0.0'
    compile 'com.android.support:appcompat-v7:23.2.1'
    compile 'com.android.support:design:23.2.1'
    compile 'com.github.bumptech.glide:glide:3.6.1'
    compile 'com.baoyz.swipemenulistview:library:1.3.0'
    compile 'com.loopj.android:android-async-http:1.4.9'
    compile 'com.github.vlonjatg:progress-activity:v1.0.3'
    compile 'com.google.android.gms:play-services-auth:9.0.0'
    compile 'com.facebook.android:facebook-android-sdk:4.11.0'
    compile 'com.facebook.fresco:fresco:0.10.0'
    compile 'com.github.nicolasjafelle:paginglistview:1.2'

}

如果我評論這一行compile 'com.google.android.gms:play-services:9.0.0'那么它可以正常工作,在compile 'com.android.support:appcompat-v7:23.2.1'上沒有錯誤或紅線誰能幫我解決這個問題?

不要使用播放服務所有模塊只是添加

     compile 'com.google.android.gms:play-services-maps:9.0.0'

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM