将picasso库导入android studio时出现兼容性错误

时间:2017-05-20 20:17:56

标签: java android android-studio libraries picasso

这是我的build.gradle文件

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "25.0.3"
    defaultConfig {
        applicationId "com.villegas.juliana.dreavel_app"
        minSdkVersion 21
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:23.4.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha9'
    compile 'com.google.firebase:firebase-database:10.0.1'
    compile 'com.squareup.picasso:picasso:2.5.2'
    testCompile 'junit:junit:4.12'
}



apply plugin: 'com.google.gms.google-services'

当我复制毕加索依赖关系时,它会在此行中抛出此错误

compile 'com.android.support:appcompat-v7:23.4.0'

错误:所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。找到的版本24.0.0,23.4.0。示例包括com.android.support:support-v4:24.0.0和com.android.support:animated-vector-drawable:23.4.0 more ...( Ctrl + F1 < / KBD>)

0 个答案:

没有答案