因此,我將我的android studio從2.2.3更新到2.3,並試圖運行我的應用程序,此後我無法登錄到我的應用程序解析後端。例外是更新android studio後無法登錄到2.3
com.parse.ParseException: java.lang.IllegalArgumentException: value == null
這是從哪裏觸發此異常的方法。
public static void loginUser(String username, String password, final ParseLoginCallbacks callback) {
Log.d(TAG, "loginUser: "+username);
Log.d(TAG, "loginUser: "+password);
final Integer num = 5;
ParseUser.logInInBackground(username, password, new LogInCallback() {
public void done(ParseUser user, ParseException e) { //user is null here with e = exception mentioned above. username and password has correct value.
if (user != null) {
// The user is logged in.
if (callback != null){
callback.loginSucceeded(user);
Log.d("myTag", "Log in succeded");
}
}
else {
// Signup failed. Look at the ParseException to see what happened.
if (callback != null)
callback.loginFailed(e);
Log.d(TAG, "Parse user login failed");
Log.d(TAG, e.toString());
}
}
});
}
相同的代碼我運行在我的同事工作室版本2.2.3和它的完美工作正常。我正在嘗試查看有關解決新的更新2.3問題的問題,但無法找到任何內容。
任何建議.... ????
在什麼行是拋出的異常? – cYrixmorten
嗯,是不是解析關閉? –