com.android.support版本与完全相同的版本不匹配

时间:2017-03-10 21:57:05

标签: android facebook sdk

apply plugin: 'com.android.application'

android {
    compileSdkVersion 25
    buildToolsVersion "25.0.2"
    defaultConfig {
        applicationId "com.and.facebook"
        minSdkVersion 15
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
repositories {
    mavenCentral()
}
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:25.2.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.2'
    compile 'com.android.support:design:25.2.0'
    compile 'com.facebook.android:facebook-android-sdk:4.20.0'
    testCompile 'junit:junit:4.12'
}

在我将facebook sdk放入依赖项之后,它给了我这个编译错误。 enter image description here com.android.support.cardview-v7 25.0.0 ???以及如何将其更新为25.2.0?

感谢

1 个答案:

答案 0 :(得分:2)

添加此行: import numpy as np np.random.seed(42) aray = np.random.randn(10) q0 = np.percentile(aray, 0, interpolation = 'lower') q1 = np.percentile(aray, 20, interpolation = 'lower') q2 = np.percentile(aray, 40, interpolation = 'lower') q3 = np.percentile(aray, 60, interpolation = 'lower') q4 = np.percentile(aray, 80, interpolation = 'lower') q5 = np.percentile(aray, 100, interpolation = 'lower') m1 = aray[aray<=q1].mean() m2 = aray[(aray>q1) & (aray<=q2)].mean() m3 = aray[(aray>q2) & (aray<=q3)].mean() m4 = aray[(aray>q3) & (aray<=q4)].mean() m5 = aray[(aray>q4) & (aray<=q5)].mean() aray[aray<=q1] = m1 aray[(aray>q1) & (aray<=q2)] = m2 aray[(aray>q2) & (aray<=q3)] = m3 aray[(aray>q3) & (aray<=q4)] = m4 aray[(aray>q4) & (aray<=q5)] = m5