The method setOnClickListener(View.OnClickListener) in the type View is not applicable
2014-10-10 16:48
465 查看
开始学习 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;
The method setOnClickListener(View.OnClickListener) in the
type View is not applicable for the arguments (new OnClickListener(){})
解决方法:
增加一个导入
import android.view.View.OnClickListener;
相关文章推荐
- 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 ar
- 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 ar
- 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 for the argum
- The method setOnClickListener(View.OnClickListener) in the type View is not applicable
- The method setOnClickListener(View.OnClickListener) in the type View is not
- 解决-The method setOnClickListener(View.OnClickListener) in the type View is not 错误
- The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder is not applicable for the arguments
- The method setOnClickListener(View.OnClickListener) in the type View is not
- The method setOnKeyListener(View.OnKeyListener) in the type View is not applicable for the argum
- 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 setBackground(Drawable) in the type View is not applicable for the arguments (int)