我不確定我錯了什麼。我有一個twitter4j.properties文件,我試過一個構造函數,沒有運氣。我不斷收到這個錯誤。Android Twitter4J - 驗證憑證丟失
我使用twitter4j核心功能的Android-2.2.5.jar
java.lang.IllegalStateException:身份驗證憑據丟失。詳細請參閱http://twitter4j.org/configuration.html。
String twitterpost = "testing"; Twitter twitter = new TwitterFactory().getInstance(); Status status = twitter.updateStatus(twitterpost); System.out.println("Successfully updated the status to [" + status.getText() + "].");
twitter4j.properties位於項目的根目錄中,我也試着移動它,但沒有運氣。
感謝您的任何幫助。
我寫了一篇博客文章Twitter4J http://blog.blundell-apps.com/sending- a-tweet /享受 – Blundell 2012-03-13 23:28:55