Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3622690
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T23:17:30+00:00 2026-05-18T23:17:30+00:00

I have an Android project completely fine, then I created a separate workspace and

  • 0

I have an Android project completely fine, then I created a separate workspace and imported that project in it. In this new workspace Eclipse shows me several similar issues and advice to remove the @Override annotations for some methods like:

     button.setOnClickListener(new View.OnClickListener() {

         @Override
   public void onClick(View v) {

   }
  });

I checked project’s properties, JREs and Android APIs – everything is similar.
I tried to clean the project, this didn’t help.

Eclipse’s error description:

 The method onClick(View) of type new View.OnClickListener(){} must override a
 superclass method  Ovals.java  /FlyingOvals/src/com/g/g    line 38 Java Problem

Why can it be and where should I look to fix these issues?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T23:17:31+00:00Added an answer on May 18, 2026 at 11:17 pm

    Check your Java compliance level in the new workspace. In Java 5, @Override was not allowed when implementing methods from an interface. In Java 6, this was allowed. Eclipse will flag a code style warning for this case if it is applicable. You can either set Java compliance level to Java 5 (ideally in the project, so that the settings persist) or you can selectively disable this warning all together for the project.

    See Project Properties -> Java Compiler

    See Project Properties -> Java Compiler -> Errors Warnings.

    I should add that the use of @Override annotation is generally recommended as it will alert you when a base class changes. Consider class Foo with method abc() and a derived class Bar that overrides that method. If you tag abc() method in Bar with @Override, when someone renames abc() method in Foo, you will get alerted as Bar.abc() is no longer overriding anything as it is declaring.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an Android project developed on Eclipse (GNU/Linux) that I last touched half
I have been developing a project app to learn about android, I can upload
In Android project's strings.xml file i have following html text <?xml version=1.0 encoding=utf-8?> <resources>
I have two threads in an Android application, one is the view thread, and
I'm doing some Android development, and I much prefer Visual Studio, but I'll have
Have you managed to get Aptana Studio debugging to work? I tried following this,
First off I am a beginner in Android development; I have been doing a
I have completed the Hello Views tutorial from android developers (http://developer.android.com/resources/tutorials/views/hello-listview.html) I understood the
Have just started using Google Chrome , and noticed in parts of our site,
Have you ever seen any of there error messages? -- SQL Server 2000 Could

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.