After Adding Facebook Android SDK dependencies i'm getting this error -


sorry stupid question.
i'm new in android..

after adding android facebook sdk dependencies

compile 'com.facebook.android:facebook-android-sdk:4.21.0' 

i'm getting error in

compile 'com.android.support:appcompat-v7:25.3.1' 

but project running fine.

enter image description here

all com.android.support libraries must use exact same version specification (mixing versions can lead runtime crashes). found versions 25.3.1, 25.0.0. examples include com.android.support:animated-vector-drawable:25.3.1 , com.android.support:cardview-v7:25.0.0 less... (ctrl+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.)

build.gradle

apply plugin: 'com.android.application'  android {     compilesdkversion 25     buildtoolsversion "25.0.2"      repositories {         mavencentral()     }      defaultconfig {         applicationid "sujeet.raj.com"         minsdkversion 15         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'      testcompile 'junit:junit:4.12'      compile 'com.facebook.android:facebook-android-sdk:4.21.0' } 

this problem occurs due different version of dependency files downloaded.

explicitly put in gradle file , sync again.

compile 'com.android.support:animated-vector-drawable:25.3.1' compile 'com.android.support:cardview-v7:25.3.1' 

under directory can find these libraries getting downloaded

project files/your project/.idea/libraries 

Comments

Popular posts from this blog

inversion of control - Autofac named registration constructor injection -

verilog - Systemverilog dynamic casting issues -

ios - Change Storyboard View using Seague -