Have you added an import to your activity?

You may want to look at this:
http://stackoverflow.com/questions/885009/r-cannot-be-resolved-android-error


On Sun, Apr 15, 2012 at 1:34 PM, Ruben Royo <[email protected]>wrote:

>
> Hello,
>
> I had the mistake of clicking on "Run" on eclipse while I was on a xml
> file (main.xml). Eclipse created the main.out.xml file and I got a lot
> of problems. I deleted the main.out.xml file and cleaned the project
> and I still get the error that says:
>
> "R cannot be resolved to a variable"
>
> I didn't write anything, it is some problem generated by eclipse...
> Does anyone have an idea of what could it happen?
>
> Thanks in advance
>
> --
> 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




-- 
"I know that you believe you understand what you think I said, but I'm not
sure you realize that what you heard is not what I meant."
- Robert McCloskey

-- 
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

Reply via email to