0

上記のエラーを示す私のコードは次のとおりです

    import org.json.*;
import com.loopj.android.http.*;

class TwitterRestClientUsage {
    public void getPublicTimeline() throws JSONException {
        TwitterRestClient.get("statuses/public_timeline.json", null, new JsonHttpResponseHandler() {
            @Override
            public void onSuccess(JSONArray timeline) {
                // Pull out the first event on the public timeline
                JSONObject firstEvent = timeline.get(0);
                String tweetText = firstEvent.getString("text");

                // Do something with the response
                System.out.println(tweetText);
            }
        });
    }
}

get メソッドでこのエラーが発生しています。これに対する適切な解決策を提案してください。

4

1 に答える 1

0

これを修正するには、asyncHttpClent jar を追加する必要があります。

于 2013-09-10T11:45:06.020 に答える