Twitter 용으로 간단한 Android 앱을 얻으려고합니다. 라이브러리 jtwitter를 사용하고 있습니다. AndroidTwitterLogin 클래스를 사용하려고합니다. OAuth를 사용하여 인증 할 수있는 버튼이 있습니다. 이 코드를 호출합니다.Log.i 라인에서 AndroidTwitterLogin.run이 충돌합니다. NoSuchMethodError
public void authorizeApp(View v) {
AndroidTwitterLogin atl = new AndroidTwitterLogin(this,
MY_TWITTER_KEY,MY_TWITTER_SECRET,MY_TWITTER_CALLBACK) {
protected void onSuccess(Twitter jtwitter, String[] tokens) {
jtwitter.setStatus("I can now post to Twitter using my android app !");
Log.i("TwitterOAuth","successfully authorized app");
authorizeText.setText("Authorized");
// Recommended: store tokens in your app for future use
// with the constructor OAuthSignpostClient(String consumerKey, String consumerSecret, String accessToken, String accessTokenSecret)
}
};
atl.run();
}
런타임시 AndroidTwitterLogin.run 행에 도달하면 다음 코드와 충돌합니다.
Caused by: java.lang.NoSuchMethodError: No static method i(Ljava/lang/String;Ljava/lang/String;)V in class Landroid/util/Log; or its super classes (declaration of 'android.util.Log' appears in /system/framework/framework.jar)
at winterwell.jtwitter.android.AndroidTwitterLogin.run(AndroidTwitterLogin.java:78)
at com.franksapps.twitteroauth.TwitterActivity.authorizeApp(TwitterActivity.java:45)`
이 클래스를 jtwitter/Android에서 사용할 수 있는지 또는이 기능을 사용할 수 있도록하려면 어떻게해야합니까?