The method setOnClickListener(View.OnClickListener) in the type View is not applicable
来源:互联网 发布:求免费的数据恢复软件 编辑:程序博客网 时间:2024/06/05 17:39
开始学习 android 了,学习的是高明鑫老师的android视频教程(android视频教学)。 学到第八讲时, 在写动态设置时报错:
The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the arguments (new OnClickListener(){})
解决方法:
增加一个导入
import android.view.View.OnClickListener;
0 0
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argu
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable
- android The method setOnClickListener(View.OnClickListener) in the type View is not applicable for
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable
- 报错 The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the ar
- 报错:The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the ar
- android开发The method setOnClickListener(View.OnClickListener) in the type View is not错误
- 解决-The method setOnClickListener(View.OnClickListener) in the type View is not 错误
- The method setOnClickListener(View.OnClickListener) in the type View is not
- 力所能及之The method setOnClickListener(View.OnClickListener) in the type View is not
- The method setOnClickListener(View.OnClickListener) in the type View is not
- const 用法
- MFC隐藏和显示任务栏与标题栏
- 圆柱的表面积
- ASCII码表
- hdu 1050Moving Tables(uvaoj 2326)
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable
- Android模拟器内置程序的调试
- JDBC性能小贴
- Http协议(6)—安全HTTP
- python 提高效率的几个小技巧
- HttpClient通过HttpPost传递参数
- 为经典版eclipse增加web and JavaEE插件
- 获取linux机器的IP和mac地址
- 数据存储快照