Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/218.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android Parse.com无效的登录参数_Android_Parse Platform - Fatal编程技术网

Android Parse.com无效的登录参数

Android Parse.com无效的登录参数,android,parse-platform,Android,Parse Platform,我正在使用Parse的Loginbackground方法对我的用户进行身份验证。但即使我使用了正确的凭证,它也会抛出异常无效的登录参数,你知道为什么吗 这是我的登录活动代码: logInButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { final String muserName = user

我正在使用Parse的Loginbackground方法对我的用户进行身份验证。但即使我使用了正确的凭证,它也会抛出异常无效的登录参数,你知道为什么吗

这是我的登录活动代码:

    logInButton.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View v) {

            final String muserName = userNameL.getText().toString();
            final String mPassword = passowrdL.getText().toString();

             ParseUser.logInInBackground(muserName,mPassword,new LogInCallback() {
                 @Override
                 public void done(ParseUser parseUser, ParseException e) {

                     if(parseUser != null) {

                         Intent intent = new Intent(LogInActivity.this, MainActivity.class);
                         intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
                         intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK);
                         startActivity(intent);
                     } else
                     {
                         AlertDialog.Builder Builder = new AlertDialog.Builder (LogInActivity.this);
                         Builder.setMessage(e.getMessage());
                         Builder.setTitle(R.string.Error);
                         Builder.setPositiveButton(android.R.string.ok,null);
                         AlertDialog dialog = Builder.create();
                         dialog.show();
                     }


                 }
             });

查看您在其他网站上发布的代码

EditText text\u name=(EditText)findViewById(R.id.loginpage\u用户名); 字符串login\u username=text\u name.getText().toString()

EditText text_password=(EditText)findviewbyd(R.id.loginpage_password);
字符串login\u password=text\u name.getText().toString();//应该是文本密码

您解决了这个错误吗?我也面临着同样的问题。我也有同样的问题,有什么解决办法吗?先从应用程序注册,然后尝试登录它会起作用。