androidtwittertwitter-fabric

com.twitter.sdk.android.core.TwitterApiException: 401 Authorization Required


my app want to login with Twitter by using Fabric Android sdk

but appear

com.twitter.sdk.android.core.TwitterApiException: 401 Authorization Required

com.twitter.sdk.android.core.TwitterAuthException: Failed to get request token
   at com.twitter.sdk.android.core.identity.OAuthController$1.failure(OAuthController.java:95)
at com.twitter.sdk.android.core.internal.oauth.OAuth1aService$1.failure(OAuth1aService.java:215)

Solution

  • At last I found the device system date and time is not correct, when time is correct. SDK works fine! I think this reason may appear in other SDKs which work with system time.