I'm using Facebook SDK for Android v4.20. When I want to call AppEventsLogger.deactivateApp(getApplication()); in my Activity's onPause() it shows as deprecated. I'm using Android Studio 2.3, the app minimum SDK is 16 and target is 25, I use build tools v25.0.2.
It seems to be similar to this SO question but the solution doesn't work and Android Studio is still showing this method as deprecated.
What might be the reason of this warning?