Closed goldmont closed 7 years ago
As in README you have to explicitly say which version of preference-v7 you wish to use.
Add this to your dependencies
compile "com.android.support:preference-v7:25.3.1"
Dne 6. 6. 2017 14:31 napsal uživatel "Giuseppe Montuoro" < notifications@github.com>:
Hi,
How can I get rid of this error? It happens when I add your library to my Gradle.
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 25.3.1, 23.2.0. Examples include com.android.support:animated-vector-drawable:25.3.1 and com.android.support:preference-v7:23.2.0 less... (Ctrl+F1) There are some combinations of libraries, or tools and libraries, that are incompatible, or can lead to bugs. One such incompatibility is compiling with a version of the Android support libraries that is not the latest version (or in particular, a version lower than your targetSdkVersion.)
My Gradle:
apply plugin: 'com.android.application'
android { compileSdkVersion 25 buildToolsVersion "25.0.3" defaultConfig { applicationId "
" minSdkVersion 21 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' testCompile 'junit:junit:4.12' compile 'net.xpece.android:support-preference-color:1.2.7' }
Thank you!
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/consp1racy/android-support-preference/issues/70, or mute the thread https://github.com/notifications/unsubscribe-auth/AEYIzQfmC3-1PcGtiANmKjDjxQP74YS_ks5sBUaqgaJpZM4NxRpR .
Ops, I did not see that... My fault!
Hi,
How can I get rid of this error? It happens when I add your library to my Gradle.
My Gradle:
I think you should upgrade the dependencies in your library. Thank you!