Search code examples
androidactionbarsherlock

Eclipse can't find Theme.Sherlock in ActionBarSherlock


This is copied straight from a question I asked on Google Groups:

I'm having problems using ABS in Eclipse(Indigo). I'm using ABS 4.1.0. I created a project from /library in Eclipse, set build target to 14, minSdk to 14, Java compliance level to 1.6 as I've been told. There are no errors in the ABS project, but in my own project, minSdk 7, targetSdk 14, build target 14 and ABS added as a library, I get this error in the AndroidManifest.xml:

Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.Sherlock')

even though I've imported ABS.
Also, R.java refuses to generate, so I also have a bunch of "R cannot be resolved to a variable" in my class. Are the two related?

Please tell me if you need more info.
Help would be appreciated.


Solution

  • Well, that certainly made me feel stupid. But now I can sleep well(things like these always keep me up at night).

    What caused my problem was simply that the library wasn't on the same drive as my workspace(D: and C:, respectively), so Eclipse couldn't create a relative path between the two. I simply moved the library to C: and it worked.

    Thanks to this question that put me on the right path.