Today, a source code was downloaded on the web and an error occurred after importing eclipse: The method OnClick (View) type new View.onclicklistener () {} must override a superclass
The problem with the JDK version was found on the Internet.
Solution:
The Complier compliance level in Project---->properties---->javacompiler is changed to 1.5 to 1.6
That is, the Java 1.5 compiler overrides the parent class's method by default, with @override, but 1.6 has been extended to the method of the interface, so if the compiler for Java 1.5 is compiled, an error occurs. Java compiler is version 1.6, select the compilation level of 1.6, but the important point is that the build of the Android library is 1.5, the resulting APK program is able to run on the 1.5 core. In general: The version of the Android SDK and the version of the Java JRE can be configured to use, and the relationship should be loose.