0

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

misguided
  • 3,699
  • 21
  • 54
  • 96
  • Trying using `winterwell.jtwitter.Twitter twitter = new winterwell.jtwitter.Twitter("username", "password");`. – Vikram Oct 07 '13 at 03:15
  • error : `winterwell cannot be resolved to a type` – misguided Oct 07 '13 at 03:17
  • 1
    Are you using the jtwitter library or the modified version that comes with the yamba project. Is `jtwitter-2.9.0.zip - yamba` a zip file? If so, unzip it and extract `jtwitter.jar`. Add this jar using `Add External JARs`. – Vikram Oct 07 '13 at 03:29
  • Mate that is resolved it. Can you post that as an answer so that I can accept it. – misguided Oct 07 '13 at 04:04

1 Answers1

0

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.

Vikram
  • 51,313
  • 11
  • 93
  • 122