Question

I am learning android. In my StatusActivity.java file , I am getting the below error :

Twitter twitter = new Twitter("username", "password");

enter image description here

I have imported the latest jtwitter jar jtwitter-2.9.0.zip and imported the same to project build path.

enter image description here

I am not sure why I am not getting an option to import the required class

Was it helpful?

Solution

It seems that you are using a zipped file instead of jtwitter jar. This is why the jtwitter library classes aren't accessible.

Remove jtwitter-2.9.0.zip - yamba > Unzip this file > Extract jtwitter.jar > Add this jar to your project.

winterwell.jtwitter.Twitter should be available now.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top