Re: [android-developers] "R cannot be resolved to a variable" when deleting main.out.xml file

2012-04-15 Thread James Black
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 wrote: > > Hello, > > I had the mistake of clicking on "Run" on eclipse while I was on a xml > file (

[android-developers] "R cannot be resolved to a variable" when deleting main.out.xml file

2012-04-15 Thread Ruben Royo
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 d

Re: [android-developers] "R cannot be resolved to a variable" error in intro example code

2012-03-22 Thread Mark Murphy
On Thu, Mar 22, 2012 at 1:00 PM, firebreather wrote: > when i try to run the intro example hello world code i get the error > message "R cannot be resolved to a variable", for the > "setContentView(R.layout.main)" line of the intro code. Usually, this means that there is a bug in your manifest, o

Re: [android-developers] "R cannot be resolved to a variable" error in intro example code

2012-03-22 Thread Rahul Vijay
On Thu, Mar 22, 2012 at 10:32 PM, Justin Anderson wrote: > Do you have a file called res/layout/main.xml in your project? > > Thanks, > Justin Anderson > MagouyaWare Developer > http://sites.google.com/site/magouyaware > > > > On Thu, Mar 22, 2012 at 11:00 AM, firebreather < > michaelirvingbr...@g

Re: [android-developers] "R cannot be resolved to a variable" error in intro example code

2012-03-22 Thread Justin Anderson
Do you have a file called res/layout/main.xml in your project? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 11:00 AM, firebreather wrote: > when i try to run the intro example hello world code i get the error > message "R cannot

[android-developers] "R cannot be resolved to a variable" error in intro example code

2012-03-22 Thread firebreather
when i try to run the intro example hello world code i get the error message "R cannot be resolved to a variable", for the "setContentView(R.layout.main)" line of the intro code. since this bug is the the android adt's own intro example code everyone would encounter this error starting out, and whe

Re: [android-developers] R cannot be resolved

2010-07-21 Thread Satya Komatineni
It is a basic question, but let me ask you anyway, do you have the ADT installed in Eclipse? When you expand the project do you see an R.java in a sub directory similar to what is at the following url? http://www.satyakomatineni.com/akc/filestorage/satya/documentfiles/3279/two-R-java.gif Perhaps

[android-developers] R cannot be resolved

2010-07-21 Thread Marc
Hi. I'm an Android development newb, and I got a problem with Eclipse. I tried a few tutorials, but I can't run the tutorial-apps because it pops up with this error: "R cannot be resolved" . I've searched a lot of different fora, where people describes the same problem, but I just can't fix it. A

[android-developers] "R cannot be resolved" after updating to 1.5 SDK Pre, and trying to compile for 1.1

2009-04-27 Thread hc
I updated to 1.5 SDK pre, together with the ADT. I followed the instruction to select Android 1.5 as target by right clicking on the project, Preferences>Android. In this window there are 3 options, Android 1.1 Android 1.5 Google APIs I selected Android 1.5 and Apply, clicked OK. Application comp