1

I'm working on an Android 4.1.2 project, where I'm trying to add a reference to this github project

Following this guide, I've imported the project into the same workspace, and I'm able to select and add the library and get a green checkmark. When I press "Apply" or "OK" the dialog closes, and nothing happens (no rebuild). Then, when I again try to see if it's added, it's not there - not even with a red cross.

I've tried running the project anyway, but it gives me java.lang.ClassNotFoundException: com.handmark.pulltorefresh.library.PullToRefreshGridView

First I choose the library, get the green checkmark enter image description here

Then I press "Apply" and "OK", and dialog just closes and don't build. When trying to see if library was added, it's not there: enter image description here Any suggestions about what's wrong?

Thomas
  • 1,563
  • 3
  • 17
  • 37
  • did you clean and build? did you add the project to your buildpath? – thepoosh May 02 '13 at 11:36
  • I've tried building and cleaning. I've not manually added the project to my buildpath for my own project, am I supposed to do that? In that case where? – Thomas May 02 '13 at 11:40
  • @Thomas no don't add it manually. You need to refer the library in your android project. – Raghunandan May 02 '13 at 11:41

3 Answers3

0

Did you or did you not check the "Is Library" option?

Drew Stauft
  • 107
  • 11
  • The library I'm referencing has "Is Library" checked and is a indeed showing up with a green checkmark. My own project is not set to "Is Library". – Thomas May 02 '13 at 11:34
  • So, you added your library to your project you want to use it with, right? Could you take a screen shot of the error or post an error log? – Drew Stauft May 02 '13 at 11:39
  • No errors, the library just isn't added/saved. See screenshots – Thomas May 02 '13 at 11:51
0

You need to reference that library in your android project. Assuming you have imported the library project to eclipse, right click on your project, goto properties, choose android , click add, browse and add the library project.

Clean and build and run. Check if you need to add support library for running on lower versions

Raghunandan
  • 132,755
  • 26
  • 225
  • 256
0

Import the library and your project in the same work space. then clean the project and try to add library by the same process you are doing(Properties --> Android --->Add). Also try restart eclipse.

Akanksha Rathore
  • 3,603
  • 3
  • 31
  • 47