解决The method onClick(View) of type new View.OnClickListener(){} must override a superclass错误
来源:互联网 发布:网络视频录像机 编辑:程序博客网 时间:2024/05/16 08:41
Android开发时,报错:
( Button ) findViewById( R.id.btnChangeView ).setOnClickListener( new OnClickListener()
{
@Override
public void onClick(View v)
{
//Do sth.
}
} );
上述代码报错如下
- implements android.view.View.OnClickListener.onClick
- The method onClick(View) of type new View.OnClickListener(){} must override a superclass
解决方法:
项目属性---->javaCompiler中的complier compliance level 将1.5改为1.6。原因jdk版本问题。
- 解决The method onClick(View) of type new View.OnClickListener(){} must override a superclass错误
- 解决The method onClick(View) of type new View.OnClickListener(){} must override a superclass错误
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- The method onClick(View) of type new View.OnClickListener(){} must override a superclass
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclas
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclas
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclas
- Android 错误 The method onClick(View) of type new View.OnClickListener(){} must override a superclas
- onClick(View) of type new View.OnClickListener(){} must override a superclass method
- 20151123-03 The method onClick(View) of type new View.OnClickListener(){} must override a superclas
- The method onClick(View) of type Activity02.MyButtonListener must override a superclass method
- The method onClick(View) of type Main must override a superclass
- 错误.@Override------ View.OnClickListener(){} must override a superclass method
- JCF之equals()与hashCode()关系详解
- Ubuntu下安装配置python3.2.3集成开发环境Eric5
- STM32开发板入门教程(十三) - SPI模式读写SD卡
- 我的C/C++之路-006课(计算输入的时间是一年中的第几天)
- 大话设计模式---简单工厂模式
- 解决The method onClick(View) of type new View.OnClickListener(){} must override a superclass错误
- GetMemory错误讲解(指针练习)
- static,const和typedef关键字的几种用途
- checkbox_checkedChanged not work you have to add autopostback to true
- Top 150 Questions - 2.3
- android学习日记---------View 和Surfaceview
- HTML与CSS入门经典(第7版)-4.24-160
- 彻底搞定C指针-函数名与函数指针
- Linuxmint系统下安装Thunderbird最新版