SignUpCallback错误解析

时间:2014-10-28 02:27:18

标签: java android parse-platform

我一直在使用解析创建用户注册时遇到问题。出于某种原因,我不断收到以下错误:screenshot。我不知道为什么,我很确定我做的一切都正常(这是我第一次使用解析)。

 public void signUp() {

        myName = name.getText().toString();
        myEmail = email.getText().toString();
        myPass = pass.getText().toString();
        myRepass = repass.getText().toString();
        myInterests = interests.getText().toString();

        if (myPass.compareTo(myRepass) == 0) {
            if (myPass.length() >= 6) {
                ParseUser user = new ParseUser();
                user.setUsername(myEmail);
                user.setPassword(myPass);
                user.setEmail(myEmail);
                user.signUpInBackground(new SignUpCallback() {
                    public void done(ParseException e) {
                        if (e == null) {
                            misMatch();
                        } else {
                            // Sign up didn't succeed. Look at the ParseException
                            // to figure out what went wrong
                            showShortAlert();
                        }
                    }
                });

            } else {
                showShortAlert();
            }
        } else {

            misMatch();
        }
    }

1 个答案:

答案 0 :(得分:0)

所以我想出了这个问题,基本上我需要做的是:

  public void done(ParseUser parseUser, com.parse.ParseException e) {