码上欢乐
首页
榜单
标签
关于
搜索
相关内容
简体
繁体
Toast那行提示错误:The method makeText(Context, CharSequence, int) in the type Toast is not applicable for the arguments (Class
, String, int)
本文转载自
查看原文
2012-08-17 09:02
15891
把Toast.makeText(activity06.class,"female",Toast.LENGTH_SHORT).show(); 这行里面的activity.class改为activity.this makeText方法的第一个参数指的是上下文的对象,你这里上下文的对象是这个activity本身,所以写成activity.this代表本身
×
免责声明!
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。
猜您在找
The method setClass(Context, Class>) in the type Intent is not applicable for the arguments (GameV
The method format(String, Object[]) in the type String is not applicable for the arguments
jar包问题The method decodeBase64(byte[]) in the type Base64 is not applicable for the arguments (String)
Android——Toast.makeText()
JAVA错误提示:The operation is not applicable to the current selection.Select a field which is not declared as type variable or a type that declares such fields.
The method setCharacterEncoding(String) is undefined for the type HttpServletResponse
011_用eclipse打开hadoop1.2.1源码出现The method getSplits(JobConf, int) is undefined for the type Object错误
attempted to return null from a method with a primitive return type (int)
用IDEA时,类/方法提示"class/method **** is never used"
Gradle sync failed: Could not find method android() for arguments 错误的解决办法
粤ICP备18138465号
© 2018-2025 CODEPRJ.COM