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'm new to Eclipse/Java/Android I have already created this project, but I wanted to
I'm new to Eclipse/Android development so I'm hoping this is something basic that I'm
I have an Android project created in Eclipse . I want to modify the
I have an Android project that branched into three different applications, app-1 , app-2
I have an Android project and Eclipse is telling me my project has an
I created an Android project a few months ago and now have to automate
I have an Android project where I have an Activity that downloads a .APK
I have an android project containing only login module. I want to integrate this
I have an Android (Java) project that includes some native C/C++ code and I
I just started working on a new Eclipse Android project and want to make

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.