Java – Twitter error when posting a message in Android?

Twitter error when posting a message in Android?… here is a solution to the problem.

Twitter error when posting a message in Android?

I’m using twitter4j.jar to post messages in twitter. But when I post a message in twitter, my log-cat shows an error. How do I fix this. Can someone help me?

OAuth - Error sending to Twitter
Relevant discussions can be on the Internet at: or
TwitterException{exceptionCode=[15bb6564-010f3e5b], statusCode=410, retryAfter=0, rateLimitStatus=null, version=2.1.11}
at twitter4j.internal.http.HttpClientImpl.request(
at twitter4j.internal.http.HttpClientWrapper.request(
at twitter4j. Twitter.updateStatus(
at TwitterUtils.sendTweet(
at PrepareRequestTokenActivity$RetrieveAccessTokenTask.executeAfterAccessTokenRetrieval(
at PrepareRequestTokenActivity$RetrieveAccessTokenTask.doInBackground(
at PrepareRequestTokenActivity$RetrieveAccessTokenTask.doInBackground(

Thanks in advance.


twitter4j-core-2.1.11 uses Twitter API 1.0, which was abandoned by twitter yesterday (see twitter’s announcement). In order to be able to use twitter in the future, you must upgrade the twitter4j library to one that supports the newer twitter API 1.1. This is the case with twitter4j version 3.0.x.

Related Problems and Solutions