The problem is probably with R, not anything to do with the support library. Sometimes cleaning the project solves the problem.
A Google search with that message ("R cannot be resolved to a variable") returns tons of answers, try those. Also Stackoverflow is full of these:
- "R cannot be resolved to a variable"?
- Eclipse error: R cannot be resolved to a variable
- Eclipse giving error, missing R.java file after recent update
If it's got nothing to do with that, then maybe you've got an error in some XML file.