【发布时间】:2015-03-06 13:39:38
【问题描述】:
我尝试使用以下代码在我的 Parse.com 中创建新用户,但我的 Android Studio 不断收到错误消息:
ParseUser newUser=new ParseUser();
newUser.setPassword(password);
newUser.setUsername(username);
newUser.setEmail(email);
newUser.saveInBackground(new SignUpCallback() {
@Override
public void done(ParseException e) {
if (e==null){
Intent intent=new Intent(signUpActivity.this, MainActivity.class);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
startActivity(intent);
}else{
}
}
});
done() 方法出错:
(10:26) public abstract void done(com.parse.ParseException e); (方法 done(ParseException) 将具有与超级方法 SignUpCallback(ParseException) 不兼容的访问权限)
【问题讨论】: