所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)
在我将firebaseUi库添加到gradle后,它显示了以下错误- 所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。找到版本25.3.1、23.4.0。示例包括所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃),android,android-studio,build.gradle,firebaseui,Android,Android Studio,Build.gradle,Firebaseui,在我将firebaseUi库添加到gradle后,它显示了以下错误- 所有com.android.support库必须使用完全相同的版本规范(混合版本可能导致运行时崩溃)。找到版本25.3.1、23.4.0。示例包括com.android.support:animated vector drawable:25.3.1和com.android.support:palete-v7:23.4.0 但我找不到paletter-v7:23.4.0库的任何用途 格拉德尔- apply plugin: 'co
com.android.support:animated vector drawable:25.3.1
和com.android.support:palete-v7:23.4.0
但我找不到paletter-v7:23.4.0库的任何用途
格拉德尔-
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "cpm.advancetect.atadvertisement"
minSdkVersion 19
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'
}
}
}
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.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-storage:10.0.1'
compile 'com.google.firebase:firebase-auth:10.0.1'
compile 'com.google.firebase:firebase-database:10.0.1'
compile 'com.firebaseui:firebase-ui-storage:1.2.0'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
这是因为您的一些依赖项正在使用调色板库。更简单的解决方案是让你的应用程序也依赖于调色板库,但使用预期的版本 因此,只需将
compile'com.android.support:palete-v7:25.3.1'
添加到应用程序依赖项中即可