我最近在 GooglePlay 中发布我的应用后遇到了这个问题。似乎 Twitter 更改了他们的 API 或配置,但没有遗留兼容性。我正在使用 Twitter4J 2.2.6。这是有关此问题的参考链接,但没有解决方案。https://dev.twitter.com/discussions/12782
12-13 11:54:53.872: W/System.err(6576): 400:The request was invalid. An accompanying error message will explain why. This is the status code that will be returned during rate limiting (https://dev.twitter.com/pages/rate-limiting).
12-13 11:54:53.872: W/System.err(6576): {"errors":[{"message":"Bad Authentication data","code":215}]}
12-13 11:54:53.872: W/System.err(6576): Relevant discussions can be found on the Internet at:
12-13 11:54:53.872: W/System.err(6576): http://www.google.co.jp/search?q=6f0f59ca or
12-13 11:54:53.872: W/System.err(6576): http://www.google.co.jp/search?q=3bea4a0a
12-13 11:54:53.872: W/System.err(6576): TwitterException{exceptionCode=[6f0f59ca-3bea4a0a], statusCode=400, retryAfter=-1, rateLimitStatus=null, featureSpecificRateLimitStatus=null, version=2.2.6}
12-13 11:54:53.872: W/System.err(6576): at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:185)
12-13 11:54:53.872: W/System.err(6576): at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:65)
12-13 11:54:53.872: W/System.err(6576): at twitter4j.internal.http.HttpClientWrapper.get(HttpClientWrapper.java:93)
12-13 11:54:53.872: W/System.err(6576): at twitter4j.TwitterBaseImpl.fillInIDAndScreenName(TwitterBaseImpl.java:135)
12-13 11:54:53.872: W/System.err(6576): at twitter4j.TwitterImpl.verifyCredentials(TwitterImpl.java:1084)
12-13 11:54:53.872: W/System.err(6576): at app.jp.cropnet.twitter.TwitterApp$3.run(TwitterApp.java:255)