您的位置:首页 > 移动开发 > Android开发

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

2012-09-07 10:15 483 查看
转自:/article/10331514.html

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就可以了
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: