Multiple Token Error in Eclipse Application (Android Application)

I get errors in a program that was sent to me from another developer. In Eclipse, I get errors that say: "Several markers on this line ... should override the superclass method." The “quick fix” suggestion is to remove the @override command, but as soon as I do this, I get the same error. You can see the error image www.theiatech.com/Mark/Eclipse_error.jpg .

What do I need to do to get rid of the error so that I can compile the program?

I am using Eclipse Classic 3.7.1, Java 1.6 Compliance Level, JRE6, Android 1.6 Library

+4
source share
2 answers

Multiple markers mean that on a particular line there is more than one error, breakpoint, TODO, etc. Even if you remove all errors, there may still be “multiple markers”. However, often a single error in the code will cause the compiler / interpreter to report multiple errors. Start with the first recorded error, find the cause and correct it. This often removes more than one error. Repeat the debugging process until all errors disappear.

I would not just delete @override. Find out why he is there. You will probably understand the error.

Good luck and happy coding!

+1
source

Try using the new AdapterView.OnItemSelectedListener () instead of Spinner.OnItemSelectedListener ()

sp.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() { public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) { } public void onNothingSelected(AdapterView<?> arg0) { } }); 
+1
source

Source: https://habr.com/ru/post/1381595/


All Articles