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()