我想在现有的工作项目中使用Material Preference,但是当我添加它们的依赖项时,如
dependencies {
compile 'com.codevscolor.materialpreference:mp:0.2.1'
}
我得错误说
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 27.1.1, 23.4.0. Examples include com.android.support:animated-vector-drawable:27.1.1 and com.android.support:preference-v7:23.4.0
build.gradle
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.google.firebase:firebase-core:11.0.2'
implementation 'com.google.firebase:firebase-messaging:11.0.2'
implementation 'com.google.firebase:firebase-auth:11.0.2'
implementation 'com.google.firebase:firebase-database:11.0.2'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'com.google.firebase:firebase-storage:11.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.theartofdev.edmodo:android-image-cropper:2.7.+'
implementation 'com.squareup.picasso:picasso:2.71828'
implementation 'com.firebaseui:firebase-ui-database:2.1.1'
implementation 'io.reactivex.rxjava2:rxjava:2.1.0'
implementation 'id.zelory:compressor:2.1.0'
implementation 'com.squareup.okhttp3:okhttp:3.10.0'
implementation 'com.codevscolor.materialpreference:mp:0.2.1' //when i add this i got the error }