Somethings to try.

1)Right click on the project -> Android Tools ->Fix Project
Properties.
  Do a clean build after that.

If that still doesn't work...

2) Copy the following 4 from the source directory.
AndroidManifest.xml, src/, assets/, res/  to a new location. (There
may be some hidden files, you don't need those.)

Go to File-> New-> Android Project -> Contents -> Create project from
existing source -> <your new location>
Select 1.5 as the Build Target.

Hope this helps, if not, please re-post to the forum.

Thanks,
Balwinder Kaur
Senior Mobile Software Engineer
Open Source Development Center
·T· · ·Mobile· stick together

The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc.

On May 26, 8:43 am, schwiz <[email protected]> wrote:
> Has nobody else come across this problem?  no ideas?
>
> On May 26, 9:15 am, schwiz <[email protected]> wrote:
>
> > I used file>import>general>existing projects into workspace
> > I am trying to run the widget example from the dev blog but when I
> > import the project I get an error
>
> > Description     Resource        Path    Location        Type
> > Syntax error, annotations are only available if source level is 1.5
> > WordWidget.java SimpleWiktionary/src/com/example/android/
> > simplewiktionary        line 44 Java Problem
>
> > I select properties>android and make sure the project build target is
> > 1.5 but that doesnt fix anything
>
> > I am also getting this error in my console
>
> > [2009-05-26 09:02:27 - spore-android] Android requires .class
> > compatibility set to 5.0. Please fix project properties.
>
> > this is also happening with a widget I was working on and needed to re-
> > import.   I sure hope someone can help me!!!
> > thanks.
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to