This problem happens a lot to me. Just do a Project > Clean ... in Eclipse and select your project.
It forces Eclipse to do a rebuild and all should be well again. On Nov 17, 4:35 am, sathvik <[email protected]> wrote: > Ya as said , try waiting for little longer, if everything compiled without > any eror > and press menu button in emulator , and make sure emulator is not locked. > > > > > > > > On Wed, Nov 17, 2010 at 5:50 PM, eggsy84 <[email protected]> wrote: > > Hi there, > > > It sounds like your project hadn't been compiled. > > > The R class is Android Resource management class and is automatically > > generated when an Android project is compiled. > > > R.layout.main basically means the layout file /res/layout/main.xml. > > Android has a declarative layout concept so you can declare your > > layout in XML which is what the main.xml file is doing. > > > Uncomment the lines you have commented and try cleaning your project > > and rebuilding it. You should find that the R class is created in the / > > bin folder. > > > In terms of the emulator it can take a while to start up and the > > screen you describe is the emulator starting. Try waiting a little > > longer and you should be presented with the Android OS and all things > > going well your application will automatically startup. > > > Declaring layout: > >http://developer.android.com/guide/topics/ui/declaring-layout.html > > Providing resources: > >http://developer.android.com/guide/topics/resources/providing-resourc... > > > Eggsy > > > On Nov 15, 7:51 pm, Houston startup coder <[email protected]> > > wrote: > > > I'm on Mac OS X Leopard and installed the ADT plugin into Eclipse > > > Galileo. I followed all these steps to get started: > > > >http://developer.android.com/sdk/index.html > > > > My SDK version is 2.2 API 8 revision 2 and I just used the Hello World > > > tutorial found here: > > > >http://developer.android.com/resources/tutorials/hello-world.html > > > > When I first created the Android application, I saw this error in the > > > Eclipse console: > > > > [2010-11-13 18:20:43 - HelloAndroid] ERROR: Unable to open class > > > file / > > > Users/mydirectory/Documents/workspace/HelloAndroid/gen/com/example/ > > > helloandroid/R.java: No such file or directory > > > > I commented out this line to fill in the few lines from the tutorial: > > > > setContentView(R.layout.main); > > > > When I ran the app, it launched my emulator but all I saw was a > > > vertical screen on the left that said "ANDROID" and phone buttons on > > > the right. I did not see the "Hello, Android" text from the > > > tutorial. > > > > Any ideas? > > > -- > > 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]<android-developers%2Bunsubs > > [email protected]> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en -- 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

