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

[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 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 see any error o

[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-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-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-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 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: >   1. Addi

[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" 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'v

[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 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: 1. Adding the sdk 'tools' to my path 2. Reinstalling ADT 3. Cleaning my project Nothing is working. Anyone have any other suggest

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

[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 wrote: > > Do you have to uninstall before you reinstall it? I just updated my > ADT to 0.9

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

[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 hc
How do u add tools directory to PATH? Was that automatic in Eclipse, and I broke that somehow? On Apr 28, 1:56 pm, André Charles Legendre wrote: > I got similar problems with SDK on Linux. I solved it by adding tools > directory in PATH. > > Regards > > Andre --~--~-~--~~

[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

[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 wrote: > I saw the same error. > so I reinstalled ADT and recheck build target

[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 Jay lee
I saw the same error. so I reinstalled ADT and recheck build target "Android1.1" then I can see R.java which is generated at "gen" folder. try this. On Apr 27, 10:46 pm, hc wrote: > Hi, > > I just tried that. But it does not work. After removing the file, I > still get the same error when I try

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

[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 wrote: > > I updated to 1.5 SDK pre, together with the ADT. I followed the > instruction to select Android 1.5 as target by right cl