Reputation: 452
i m new in android and integrate twitter api but find error Could not find class 'twitter4j.TwitterFactory', referenced from method net.londatiga.android.TwitterApp.
below code:
mTwitter = new TwitterApp(this, twitter_consumer_key,twitter_secret_key);//here find error
mTwitter.setListener(mTwLoginDialogListener);
how to fix this issue but all 4 lib adding but run time find this error. please help me out ...
Upvotes: 2
Views: 146
Reputation: 6960
In addition to adding the JAR file to the project you have to make sure that it will be included in the apk file:
Go to your project properties -> Java Build Path -> Order and Export tab, and ensure the box next to the twitter4j JAR file is checked.
Upvotes: 1