Android下Multiple markers at this line的解决方法

转自:http://blog.csdn.net/wletv/article/details/6889307

 

Multiple markers at this line
- implements android.view.View.OnClickListener.onClick
- The method onClick(View) of type new View.OnClickListener(){} must 

override a superclass method


原因:JDK1.5不支持这种写法。实现接口方法需要重写抽象方法。

解决方法:Eclipse的Window-Preferences->Java->Compiler,把Compiler compliance level从1.5改成1.6就可以了 

你可能感兴趣的:(android)