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

2012-03-24 Thread Justin Anderson
What API are you building against? Thanks, Justin Anderson MagouyaWare Developer http://sites.google.com/site/magouyaware On Thu, Mar 22, 2012 at 11:20 AM, firebreather michaelirvingbr...@gmail.com wrote: this is the MainActivity.java file in the Hello Android example code: package

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

2012-03-22 Thread firebreather
yes, the res/layout/main.xml file in the hello world example code in the android adt reads as follows in eclipse for me: ?xml version=1.0 encoding=utf-8? LinearLayout xmlns:android=http://schemas.android.com/apk/res/ android android:layout_width=fill_parent

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

2012-03-22 Thread firebreather
this is the MainActivity.java file in the Hello Android example code: package com.dummies.android.helloandroid; import android.app.Activity; import android.os.Bundle; public class MainActivity extends Activity { /** Called when the activity is first created. */ @Override public

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

2012-03-22 Thread firebreather
i got an email which solved the first R cannot be resolved to a variable from Chuck Krutsinger, who has been very patient with this newbie: The import you refer to is not technically a bug. The compiler is looking for a file named R, which it will find in the gen directory if your IDE has

[android-developers] Re: R cannot be resolved

2010-07-24 Thread mah
When pulling in existing projects, I find that often I need to right- click the project in the work bench, go to the Android Tools entry, and select Fix Project Properties. On Jul 20, 6:31 pm, Marc marc.d.pa...@gmail.com wrote: Hi. I'm an Android development newb, and I got a problem with

[android-developers] Re: R cannot be resolved

2010-07-21 Thread Kacee
Try creating a helloAndroid project in Eclipse and run it. If it runs successfully, then there is no problem with yr set up. The problem might be only with tutorial apps Let us know. Cheers, Kacee On Jul 21, 10:56 pm, Satya Komatineni satya.komatin...@gmail.com wrote: It is a basic question,

Re: [android-developers] Re: R cannot be resolved

2010-07-21 Thread Connick
I often get those errors when importing projects ...and I have to do an explicit clean on the project then that error goes away. Don't know if you're seeing the same behavior (on OS X) but hope that helps. On Wed, Jul 21, 2010 at 2:00 PM, Kacee komal...@gmail.com wrote: Try creating a

[android-developers] Re: R cannot be resolved

2010-07-21 Thread Marc
I do have ADT installed and I do have one R.java file, like this Gen -- App name -- R.java On 21 Jul., 19:56, Satya Komatineni satya.komatin...@gmail.com wrote: 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

[android-developers] Re: R cannot be resolved

2010-07-21 Thread DanH
What do you know about Java? The R class is built automatically by the Android build process. (R.java is in your project's gen directory.) It's mainly a container for a bunch of inner classes (the R.whatever classes) which in turn contain numeric constants used by the UI stuff. All sorts of

[android-developers] Re: R cannot be resolved

2010-07-21 Thread Maps.Huge.Info (Maps API Guru)
One thing DanH left out, locate and delete any spurious R.java files, especially if they are in your source tree. Sometimes they pop into the mix in unexpected locations, which will cause issues. After deleting R.java files, do a clean on your project. Also make sure you have no import statements

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

2009-05-13 Thread Michael
I'm running fedora 10, and I've had similar issues. Cleaning is part of the solution. However, I had a further problem that needed to be resolved first. As with previous releases of the SDK, I've found that I needed to execute chmod 755 * in the 'tools' directory. With this release, there are

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

2009-05-06 Thread pis4vlg
I think this is the right answer. When face the same problem, I fixed it after clean the project. thanks to Raphael vincent On Apr 29, 1:31 am, Raphael r...@android.com wrote: The first time you convert an old project to the 0.9 ADT with 1.5 SDK, you should try to use Project Clean if you

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

2009-05-01 Thread John B. Hansen
Strange. When I manually deleted all the Import statements and then Reorganize Imports (Shift+Ctrl+O) again, it cleans up the problems. I had been using Organize-Imports (Shift+Ctrl+O) repeatedly on those migrated files but there may have been some stale imports that needed to be manually deleted

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

2009-05-01 Thread John B. Hansen
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh

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

2009-05-01 Thread John B. Hansen
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh

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

2009-05-01 Thread John B. Hansen
More info...it is specifically the import android.R statement that is causing the problem. It was in all my old files. When I delete it and re-generate the new imports, the problem goes away. Maybe this can be fixed in Eclipse or ADT. I'm sure other people must also be having this problem. jh

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

2009-04-30 Thread Richard Schilling
I had the same problem but solved it. Perhaps this will help: Make sure the 'gen' directory is part of the java source build path. Right Click on project name (Package Explorer) - Properties (Context Menu) - Java Build Path (tree) - Source (tab) - Add Folder (Button) - gen (directory name) -

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

2009-04-30 Thread John B. Hansen
I also checked and the 'gen' dir is in my java source build path. Its still not working. jh On Apr 30, 2:54 pm, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be

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

2009-04-30 Thread Xavier Ducrohet
Did you setup the Build target for your older project? Xav On Thu, Apr 30, 2009 at 2:54 PM, John B. Hansen jnahan...@gmail.com wrote: I have the same problem i.e. after converting to Android 1.5 SDK, my project files won't compile due to dozens of R.* files cannot be resolved. I've tried:

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

2009-04-30 Thread John B. Hansen
Yes, I selected Android 1.1 platform API Level 2. I also made sure src and gen folders were included in the Build path. I also included res folder in Build path but it had no effect. FYI: I am able to build a new Hello World program that just works. But, I can't figure out why that one works and

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

2009-04-28 Thread André Charles Legendre
Hi hc Under Unix to add tools directory to PATH you can do it in .bash_profile of your user : PATH=$PATH:/tools export PATH where xxx is the PATH of where you put the SDK Andre --~--~-~--~~~---~--~~ You received this message because you are subscribed to

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

2009-04-28 Thread Raphael
The first time you convert an old project to the 0.9 ADT with 1.5 SDK, you should try to use Project Clean if you see any error on missing or duplicate classes. R/ On Mon, Apr 27, 2009 at 9:44 PM, hc honch...@gmail.com wrote: Do you have to uninstall before you reinstall it? I just updated

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

2009-04-27 Thread Satya Komatineni
considering that R.java is a generated file, try deleting it and see if the environment rebuilds according to your preference. On Mon, Apr 27, 2009 at 8:57 AM, hc honch...@gmail.com wrote: I updated to 1.5 SDK pre, together with the ADT. I followed the instruction to select Android 1.5 as

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

2009-04-27 Thread hc
Hi, I just tried that. But it does not work. After removing the file, I still get the same error when I try to compile for 1.1 SDK. Worse, when I try to compile for 1.5 SDK after that, I get the following error but application compiled successfully Conversion to Dalvik format failed with error

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

2009-04-27 Thread hc
Do you have to uninstall before you reinstall it? I just updated my ADT to 0.9 (the non-pre ADT), and update to 1.5_R1 SDK, but I still get the same error if I try to compile for Android1.1 On Apr 28, 9:29 am, Jay lee to20...@gmail.com wrote: I saw the same error. so I reinstalled ADT and

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

2009-04-27 Thread André Charles Legendre
I got similar problems with SDK on Linux. I solved it by adding tools directory in PATH. Regards Andre --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to