I was working in an Android app and was able to compile and run just fine for a little while.  All of a sudden, the “R” constant used to reference resources turned red (unrecognized).  After a decent amount of searching, I found that I had to click “Build >> Clean Project”.  That did the trick, per this SO article.