Failed to resolve: com.facebook.android:facebook-android-sdk:[4,5)

Follow the below procedure to resolve the issue:-

  1. Click on Project Structure from the icon available in the tool bar above.

  2. Open Dependencies tab.

  3. select

    com.facebook.android:facebook-android-sdk:[4,5)

  4. Remove the facebook dependency by clicking the minus(-) button on the extreme right side.

  5. Now, Click on Plus(+) button on the right side above Minus button. Select Library dependency

  6. Type Facebook on the search input box and click on the search button.

  7. Choose com.facebook.android:facebook-login. click on Ok. Sync your Gradle.

This will resolve your issue. As it has worked for me.


remove compile 'com.facebook.android:facebook-android-sdk:[4,5)'

And add below dependency it resolve my problem

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


Use this dependency for Facebook SDK. It will work. (Tested on Android Studio version 3.0 and above)

implementation 'com.facebook.android:facebook-login:4.30.0'