I got this error on facebook SDK. I'm using androidx
to my support library
looking into the activity itself uses supportv4 libraries
whats the possible fix here?
I solved it by adding this two lines in gradle.properties
android.useAndroidX=true
android.enableJetifier=true
Try this use latest dependencies
implementation 'com.facebook.android:facebook-android-sdk:4.39.0'
implementation 'com.facebook.android:facebook-share:4.39.0'
Update
AFAIK the current SDK of facebook does not support with AndroidX
You can check here
Facebook SDK for Android Changelog 4.x
Modified
In-app purchase auto logging is turned on by default. Android auto-logged purchases can be verified with uploaded credentials. Lean More
Fixed
Various bug fixes
i have reported a bug
here is the Latest Response from Facebook Team
Hi Nilesh,
Thanks for reaching out. I'm afraid the current SDK doesn't support AndroidX. Unfortunately I don't have a timeline on when support for the library will be released, but stay tuned to our developer channels for any announcements in the future.
Regards, Marc
The issue was caused by using android button widget in layout, this can be bypassed by using the facebook login programmatically:
refer this thread for programmatically using facebook login: Facebook authentication without login button