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 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 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 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 <honch...@gmail.com> wrote: > > >> > 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 for1.5SDK after that, I get the > >> > following error but application compiled successfully > >> > Conversion to Dalvik format failed with error 1 > > >> > On Apr 27, 9:05 pm, Satya Komatineni <satya.komatin...@gmail.com> > >> > wrote: > > >> > > considering thatR.javais 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 to1.5SDK pre, together with the ADT. I followed the > >> > > > instruction to select Android1.5as target by right clicking on the > >> > > > project, Preferences>Android. In this window there are 3 options, > >> > > > Android 1.1 > >> > > > Android1.5 > >> > > > Google APIs > > >> > > > I selected Android1.5and Apply, clicked OK. Application compiled > >> > > > nicely. > > >> > > > If I go back to the same Preferences and select Android 1.1, Apply, I > >> > > > can no longer compile my application successfully. > >> > > > I get hundreds of the same error > >> > > > R cannot be resolved > > >> > > > Then I try to open this project in another computer that I have not > >> > > > updated the SDK yet. I get the same error. Can anyone help to solve > >> > > > this? I'm trapped until the new SDK is out. > > --~--~---------~--~----~------------~-------~--~----~ 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@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---