0

I want to include the guava-07.jar in my project.I tried configuring build paths,copying it to library folder,linking source and used add external jars.

The import com.google.common.eventbus.Subscribe cannot be resolved keeps showing. I have a project with guava.jar in its private library.Can I put that in this project.Or is there another problem.Please help me understand.

Ravi Bhatt
  • 1,930
  • 1
  • 14
  • 27
ajarmani
  • 269
  • 1
  • 2
  • 9
  • 1
    first remove all the dependencies from jar file. After that right click --> Build path --> add to build path. Clean the project after it as well. – Ravi Bhatt Jun 06 '14 at 05:02
  • yes the same error keeps coming – ajarmani Jun 06 '14 at 07:28
  • no I did not get it solved.Tried a different library instead. – ajarmani Jun 09 '14 at 05:57
  • did it solved your problem? which library you used? – Ravi Bhatt Jun 09 '14 at 06:06
  • Actually I was using a custom library that used guava.When I was trying to use that in my project guava did not integrate properly.I simply deleted the entire project and imported from backup.This time the private library was already there with guava in it!I tried the same custom library it worked by just building the path. – ajarmani Jun 09 '14 at 09:22

2 Answers2

0

If you are using eclipse, just copy guava-07.jar into libs folder(create one if you don't have it).

Sudhanshu Mishra
  • 2,024
  • 1
  • 22
  • 40
0

Select the files in windows explorer and drag them to the libs folder in eclipse. This will also add them to the Android Private Libraries.

cartajs
  • 1
  • 1