androidandroid-resources

My android app does not recognize R.string resources - what could be the reason?


I learn android with sample apps from textbook. In the given sample source R.string.something is recognized: generic1

However, in my own EXACT source code, same R.strings are not recognized- highlighted as errors:

generic2

Does anyone know how to fix it?


Solution

  • I've had this many time with eclipse, and it was not a setup / code problem on my side. Generally, cleaning, rebuilding and sometime even stopping and restarting eclipse solved it. And yes, it's a pain in the neck ...