2

This is my first time using an external library, and I'm a bit nervous about removing all of the errors. The library when added gives me the a whole bunch of errors with the same fix "Remove @Override annotation".

The fix for this is to increase my JDK to 1.6: ActionBarSherlock library is full of errors after being imported

But now I'm worried about my other apps... Did I compile them the wrong way? Also, I have a JDK of 1.7 available, should I use that instead of 1.6? Sorry, I really don't know the difference.

Community
  • 1
  • 1
EGHDK
  • 17,818
  • 45
  • 129
  • 204

1 Answers1

5

this very common issue as...

This is most likely because you are switching between Java 1.5 and Java 1.6. In 1.5 you couldn't mark interface implementations with @Override, but you can in 1.6.

@Override annotation error (android prefs)

Bug with Override annotations in Eclipse

'Must Override a Superclass Method' Errors after importing a project into Eclipse

Why do I get "must override a superclass method" with @Override?

Also, I have a JDK of 1.7 available, should I use that instead of 1.6?

Java 7 language features with Android

Does Android plan to support Java7?

How does Android's Java version relate to a Java SE version?

Community
  • 1
  • 1
Dheeresh Singh
  • 15,643
  • 3
  • 38
  • 36
  • Yeah it works with 1.6, but I just want to know if my application will be more up to standard if it was in 1.7? – EGHDK Jun 30 '12 at 21:24
  • setting higher version will give you chance to use new feature introduced in java 7 but take a look http://stackoverflow.com/questions/7153989/java-7-language-features-with-android and http://stackoverflow.com/questions/8535164/does-android-plan-to-support-java7 – Dheeresh Singh Jun 30 '12 at 21:28
  • http://stackoverflow.com/questions/7535385/how-does-androids-java-version-relate-to-a-java-se-version – Dheeresh Singh Jun 30 '12 at 21:29