Check the gen/ directory of your project. There are three possibilities: 1. There is nothing there. In that case, you have an error in a resource or in your manifest that is causing the problem. Sometimes, I find it easier to track these down by doing a command-line build with Ant, but that may just be me.
2. There is an R.java file there, but it is not in the package you think it should be. The package used for R.java is the one declared in the <manifest> element of your AndroidManifest.xml file. If your code is in a different package, you will need to manually add the import statement. 3. There is the R.java file, and it is in the correct package, in which case something else is wrong, perhaps in your activity. On Tue, May 1, 2012 at 12:00 PM, CaptAscii <[email protected]> wrote: > I am using Eclipse Indigo on Linux 11.10 and using SDK 4.0.3. > > I created a new android project, and it complains R could not be > resolved in the onCreate method. The Android.R package is NOT > included, as some have suggest it would cover it. On Linux, the > Android SDK folder has full permissions (chmod 777). > > I looked through all my files and could not find any errors. > > Does anyone have any ideas? > > Thanks. > > CaptAscii > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en -- Mark Murphy (a Commons Guy) http://commonsware.com | http://github.com/commonsguy http://commonsware.com/blog | http://twitter.com/commonsguy Android App Developer Books: http://commonsware.com/books -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

