'A newer version of com.facebook.android:facebook-android-sdk than [5,6) is available: 4.34.0 '

682 Views Asked by At

According to the Facebook documentation, I have to add the following line in my Gradle file:

 implementation 'com.facebook.android:facebook-android-sdk:[5,6)'

But I get the error:

A newer version of com.facebook.android:facebook-android-sdk than [5,6) is available: 4.34.0

If I set the version to 4.34.0 it seems that I don't have the latest version as I have some warnings mentioning that some methods are deprecated.

Why do I get this error message ? Should I really use [5,6) and not 4.34.0 ? By the way, what does [5,6) mean ?

Thanks !

1

There are 1 best solutions below

1
AskNilesh On

Use the latest version

implementation 'com.facebook.android:facebook-android-sdk:7.1.0'

In my Android studio it suggesting to use version 5.15.3

Use the latest version