问题由于this上下文(context)不对 解决办法: 指定context上下文如: Toast.makeText(LoginActivity.this, "错误,请重新输入!!!", Toast.LENGTH_SHORT).show();