When I first started android app development I was following the developer.android.com course, and the first error I stumbled upon was the famous "R cannot be resolved to a variable".
I've been looking all around for this issue, I cleaned my projects multiple times, but to no certain avail. I was thinking maybe it has something to do with the version of Java, as the android sdk only seems to be more stable with Java 1.6.
What I haven't figured out is how to actually resolve the issue completely, as I would love to use switch on my String.
edit:
I wrote an answer to this as well. Hope this will help some unfortunate people out there.