My goal: create a page that logs in via facebook
What I've done so far: followed the instructions at https://developers.facebook.com/docs/facebook-login/android
The problem that I need help with: when I add
compile 'com.facebook.android:facebook-android-sdk:[4,5)'
to the dependencies in app | Gradle Scripts | build.gradle (Module: app)
it fails to build and presents the error message
Error:Execution failed for task ':app:processDebugManifest'. Manifest merger failed : Attribute meta-data#android.support.VERSION@value value=(25.3.1) from [com.android.support:cardview-v7:25.3.1] AndroidManifest.xml:24:9-31 is also present at [com.android.support:appcompat-v7:26.0.0-alpha1] AndroidManifest.xml:27:9-38 value=(26.0.0-alpha1). Suggestion: add 'tools:replace="android:value"' to element at AndroidManifest.xml:22:5-24:34 to override.
The two other compiles in the dependencies by default are:
compile 'com.android.support:appcompat-v7:26.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
Hovering over the top statement presents the message:
All com.android.support libraries must use the exact same version specification (mixing versions can lead to runtime crashes). Found versions 26.0.0-alpha1, 25.3.1. Examples include com.android.support:animated-vector-drawable:26.0.0-alpha1 and com.android.support:cardview-v7:25.3.
Android studio version is 2.3.3 and facebook SDK is 4.24.0
Does anyone know why these errors are occurring and/or how to fix them? Thanks