I\'m doing this for a project in AP Computer Science.
Basics:
Mac OS X 10.5.8
NetBeans 7.0
Android SDK 3.0 (Level 11)
So I\'m
I had the same problem and it was due to the package of R not being the same as the one for Main. I just moved Main to the same package as R and everything is fine after I hit Build.
Right-click your project and hit build. It will generate the missing R class for you. At least it did for me in Netbeans 7.1