Lucky you! I already thought of that, I have tried it many times, it
never solves it for me. Not even once. The only procedure I have found
that will solve it is to delete the project, exit Eclipse and start
all over again.

On Nov 14, 8:47 am, Mehdi Achour <[email protected]> wrote:
> Usually cleaning the project (Project > Clean) magically solves this for me.
>
> Mehdi
>
> On Sat, Nov 14, 2009 at 11:37 AM, Indicator Veritatis 
> <[email protected]>wrote:
>
> > One correction to what I wrote earlier: it is 'R.layout.main' that is
> > problematic, not 'R.main.java'. Fortunately, I am not getting this
> > spurious error message from Eclipse right now, so I cannot verify
> > which version of 'R' it tries to bring in, but I can verify that the
> > line it has trouble on is the one referring to 'R.layout.main' in the
> > @Override for onCreate(Bundle) in the Activity being defined.
>
> > On Nov 13, 10:39 pm, Indicator Veritatis <[email protected]> wrote:
> > > In general, the procedure you give is a useful one. Unfortunately, for
> > > this particular problem (Eclipse complaining that R.main.java does not
> > > resolve), that procedure will bring in the wrong 'R'.
>
> > > Instead, what the user needs to do is get the IDE to launch the
> > > emulator. That will rebuild the object 'R.main.java' from 'main.xml',
> > > forcing the IDE to recognize R.main.java.
>
> > > I have been told that this is an Eclipse bug.
>
> > > Now the hard part is getting the IDE to launch the emulator. I haven't
> > > figured this one out entirely myself yet. My temporary workaround is
> > > to close the project, delete the project, and start all over again
> > > after closing and relaunching Eclipse.
>
> > > Clearly this workaround is not acceptable for a project of substantial
> > > size. But it is tolerable for going through the Android tutorials. I'm
> > > still waiting for someone to cover a more usable workaround in this
> > > forum, which really is the ideal place for it.
>
> > > Finally, this question (or some one of the many minor variants of it)
> > > has been asked often enough, the answer really belongs in the FAQ.
> > > After all, by now, it is clear: it really is a "frequently asked
> > > question".
>
> > > On Nov 11, 7:50 am, eclipsed4utoo <[email protected]> wrote:
>
> > > > If you are using Eclipse as your IDE, put the cursor on the R and hit
> > > > Ctrl + Shift + O (the letter O).  That will automatically add the
> > > > needed import statement.
>
> > > > Ryan
>
> > > > On Nov 11, 10:42 am, jbrohan <[email protected]> wrote:
>
> > > > > Look at the other files in src/ There may be an R there....delete it!
>
> > > > > On Nov 8, 8:00 am, benjamin goth <[email protected]>
> > > > > wrote:
>
> > > > > > Hi I was doing fine going through the tutorials but suddenly
> > whatever
> > > > > > SDK I use to build against I get that R cannot be resolved
> > > > > > I have the R.JAVA file in my gen folder and have not used the wrong
> > > > > > import pleaeeese someone point out where I am being stupid
> > > > > > Many thanks
> > > > > > Ben
>
> > --
> > You received this message because you are subscribed to the Google
> > Groups "Android Beginners" group.
> > To post to this group, send email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]<android-beginners%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/android-beginners?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
  • [android-b... benjamin goth
    • [andr... jbrohan
      • [... eclipsed4utoo
        • ... Indicator Veritatis
          • ... Indicator Veritatis
            • ... Mehdi Achour
              • ... Indicator Veritatis
          • ... Fred Grott(Android Developer, http://mobilebytes.wordpress.com)

Reply via email to