The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder i

来源:互联网 发布:iphone移动数据慢 编辑:程序博客网 时间:2024/06/05 20:53

The method setPositiveButton(int, DialogInterface.OnClickListener) in the type AlertDialog.Builder is not applicable for the arguments (String, new   View.OnClickListener(){})


这里是您的解决方案,你做了一个愚蠢的错误,哥们。
它不应该是

.setNegativeButton("Don't Remind", new OnClickListener() 

它应该是

.setNegativeButton("Don't Remind", new DialogInterface.OnClickListener()
原创粉丝点击