Got the error fixed!

Refer to following post:
http://stackoverflow.com/questions/1678122/must-override-a-superclass-method-errors-after-importing-a-project-into-eclips

Eclipse is defaulting to Java 1.5 and you have classes implementing
interface methods (which in Java 1.6 can be annotated with @Override,
but in Java 1.5 can only be applied to methods overriding a superclass
method).

Go to your project/ide preferences and set the java compiler level to
1.6 and also make sure you select JRE 1.6 to execute your program from
eclipse.

With Eclipse Galileo you go to Eclipse -> Preferences menu item, then
select Java and Compiler in the dialog.

Now it still may show compiler compliance level at 1.6, yet you still
see this problem. So now select the link "Configure Project Specific
Settings..." and in there you'll see the project is set to 1.5, now
change this to 1.6. You'll need to do this for all affected projects.

This byzantine menu / dialog interface is typical of Eclipse's poor UI
design.

-Goodline

On Jan 29, 7:08 pm, goodline <[email protected]> wrote:
> Hi,
>
> I am a student and new to android development. I am planning to do a
> project on android nfc peer-to-peer mode.
> I was wondering if it is possible to create two virtual devices(AVD's)
> on a windows machine and send data from one device to another with nfc
> as the medium?
>
> Also, when I try to run the sample AndroidBeamDemo project, I see some
> errors in Beam.java:
> 1. The method createNdefMessage(NfcEvent) of type Beam must override a
> superclass method
> 2. The method onNdefPushComplete(NfcEvent) of type Beam must override
> a superclass method
>
> Any help is appreciated.
>
> -Goodline

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