Take the 2-minute tour ×

My laptop recently crashed, so I got an old desktop PC up and running. Got Eclipse installed along with Android SDK.

But when I check my Android project out of Subversion into Eclipse, I get errors that suggest it cannot find the ViewPagerIndicator library (which I did already add to my workspace/projects as a library).

When I go to my Android project's properties, on the Android tab at the bottom, and add the ViewPagerIndicator as a library it shows a green checkbox:

enter image description here

I click OK, and dialog dismisses. But then when I try building I get these errors:

E:\Workspace\foobar\res\values\styles.xml:4: error: Error: No resource found that matches the given name: attr 'vpiTabPageIndicatorStyle'.
E:\Workspace\foobar\res\values\styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'Widget.TabPageIndicator'.

If I go back into my project's properties on the Android tab, the same ViewPagerIndicator library that had a green checkbox not 3 seconds prior now has a red X, and there's question mark beside it in the "Project" column:

enter image description here

Both my project and the ViewPagerIndicator project are set to compile with Java 1.6 and are both targeted at SDK v16.

Oh, and yeah the same Subversion revision was building just fine on my laptop so all the files are identical as they were before.

share|improve this question
It might sound stupid, but try removing the reference and then adding it back again. –  Swayam Jan 26 '13 at 19:24
I did. Several times. I've also removed and added the ViewPagerIndicator library back (import as existing Android code) several times. I even removed/added the library as a reference in my project.properties as "android.library.reference.1=C:/ViewPagerIndicator" –  The Awnry Bear Jan 26 '13 at 19:29
I am out of ideas now. Tough luck. Hope someone else can shed light on it. –  Swayam Jan 26 '13 at 19:31
have used clean/build project on the ViewPageIndicator build in eclipse? Some times I have to clean and build it explicitly before my project that uses it will compile. –  FoamyGuy Jan 26 '13 at 20:03
it was an issue with me two days before, while trying to compile clients project, I copied it into same workspace. and was also facing some xml resource error which was basically causing this issue too, Eclipse behave weirdly some time, All the best –  Ankit Jan 26 '13 at 20:32
show 2 more comments

1 Answer

up vote 2 down vote accepted

I don't feel right posting this as the answer to my own question because I'm still at a loss for what I was doing wrong, if anything.

But I ended up removing both my project and the ViewPageIndicator library project from my workspace, then re-adding them back. Everything worked. Go figure. Maybe this will help someone else.

share|improve this answer
add comment

Your Answer


