Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/224.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
清单中出错-所有com.android.support库必须使用完全相同的版本规范_Android_Android Studio_Android Manifest - Fatal编程技术网

清单中出错-所有com.android.support库必须使用完全相同的版本规范

清单中出错-所有com.android.support库必须使用完全相同的版本规范,android,android-studio,android-manifest,Android,Android Studio,Android Manifest,我得到的所有com.android.support库必须使用完全相同的版本规范混合版本可能导致运行时崩溃。找到版本27.0.1、25.3.1。示例包括com.android.support:animated vector drawable:27.0.1和com.android.support:customtabs:25.3.1 android清单中的错误 早些时候,我使用了一个类似compile'com.android.support:appcompat-v7:27+'的版本,然后根据andro

我得到的所有com.android.support库必须使用完全相同的版本规范混合版本可能导致运行时崩溃。找到版本27.0.1、25.3.1。示例包括com.android.support:animated vector drawable:27.0.1和com.android.support:customtabs:25.3.1 android清单中的错误

早些时候,我使用了一个类似compile'com.android.support:appcompat-v7:27+'的版本,然后根据android studio的建议进行了修改。但我还是犯了同样的错误。请帮忙

apply plugin: 'com.android.application'
android {
compileSdkVersion 27
buildToolsVersion '27.0.1'
defaultConfig {
    applicationId "com.app"
    minSdkVersion 16
    targetSdkVersion 27
    versionCode 1
    versionName "1.0"
    testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    vectorDrawables.useSupportLibrary = true

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', 
{
    exclude group: 'com.android.support', module: 'support-annotations'
})

compile 'com.facebook.android:facebook-android-sdk:[4,5)'
compile 'com.android.support:appcompat-v7:27.0.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:cardview-v7:27.0.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'info.hoang8f:android-segmented:1.0.6'
compile 'com.android.volley:volley:1.0.0'
compile 'com.android.support:design:27.0.1'
compile 'de.hdodenhof:circleimageview:2.1.0'
testCompile 'junit:junit:4.12'

}

您的某个第三方库可能正在使用support library版本25.3.1。
尝试将您的支持库版本更改为25.3.1并同步您的项目。

com.android.support:customtabs:27.0.0com.android.support:support compat:27.0.0我没有在我的清单中使用这两个版本尝试清理和重建项目尝试将库与您正在使用的版本匹配