android - appcompat-v7:25.2.0 conflicts with play-services:10.2.1 -
i working on new app. presently trying add dependency
compile 'com.google.android.gms:play-services:10.2.1' when gradle compile error on compile 'com.android.support:appcompat-v7:25.2.0' saying:
all com.android.support libraries must use exact same version specification (mixing versions can lead runtime crashes). found versions 25.2.0, 24.0.0. examples include com.android.support:animated-vector-drawable:25.2.0 , com.android.support:mediarouter-v7:24.0.0 less... (⌘f1) there combinations of libraries, or tools , libraries, incompatible, or can lead bugs. 1 such incompatibility compiling version of android support libraries not latest version (or in particular, version lower targetsdkversion.)
any ideas how best resolve issue?
gradle file
apply plugin: 'com.android.application' android { compilesdkversion 25 buildtoolsversion "25.0.2" defaultconfig { applicationid "appidhere" minsdkversion 15 targetsdkversion 25 versioncode 1 versionname "1.0" testinstrumentationrunner "android.support.test.runner.androidjunitrunner" resvalue "string", "authority", "${applicationid}" } 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' }) provided "org.projectlombok:lombok:1.16.8" compile 'com.android.support:appcompat-v7:25.2.0' compile 'com.android.support:design:25.2.0' compile 'com.android.support:recyclerview-v7:25.2.0' compile 'com.android.support:cardview-v7:25.2.0' compile 'com.android.support.constraint:constraint-layout:1.0.2' compile 'com.android.support:support-v4:25.2.0' compile 'com.squareup.okhttp:okhttp:2.7.0' compile 'com.google.android.gms:play-services:10.2.1' testcompile 'junit:junit:4.12' }
update build.gradle file following:
compile 'com.android.support:appcompat-v7:25.3.1'
Comments
Post a Comment