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

On May 1, 6:31 am, "John B. Hansen" <jnahan...@gmail.com> wrote:
> 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 (I thought Organize-Imports would do that
> automatically for me? but
> apparently not?). Anyway, I'm cleaning up the files using this method
> and it works
> for both 1.1 and 1.5 build targets. Looks like this is solved. Thanks
> for the
> assistance.
>
> jh
>
> On Apr 30, 7:07 pm, "John B. Hansen" <jnahan...@gmail.com> wrote:
>
> > 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 my migrated projects don't
> > work?
>
> > jh
>
> > On Apr 30, 5:24 pm, Xavier Ducrohet <x...@android.com> wrote:
>
> > > 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:
> > > >   1. Adding the sdk 'tools' to my path
> > > >   2. Reinstalling ADT
> > > >   3. Cleaning my project
>
> > > > Nothing is working. Anyone have any other suggestions. I'm stopped.
>
> > > > jh
>
> > > > On Apr 28, 10:31 am, Raphael <r...@android.com> wrote:
> > > >> The first time you convert an old project to the 0.9 ADT with1.5SDK,
> > > >> 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 to1.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 seeR.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
> > > >> >> > > >Rcannotberesolved
>
> > > >> >> > > > 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.
>
> > > --
> > > Xavier Ducrohet
> > > Android Developer Tools Engineer
> > > Google Inc.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to