我收到错误"无法解决符号' resid'和' show()' :"

时间:2018-05-20 08:45:29

标签: android

我收到错误"无法解决符号' resid'和' show()' :"

@Override
public void onComplete(@NonNull Task<AuthResult> task) {

        if(task.isSuccessful()){

            sendToMain();

        } else {

            String errorMessage = task.getException().getMessage();
            Toast.makeText(RegisterActivity.this, resid:"Error : " + 
                   errorMessage, Toast.LENGTH_LONG).show();

         }

        reg_progress.setVisibility(View.INVISIBLE);

         }
    });

 } else {

   Toast.makeText(RegisterActivity.this, resid:"Confirm Password and 
      Password Field doesn't Match.", Toast.LENGTH_LONG).show();

 }

1 个答案:

答案 0 :(得分:0)

你可以做到

Toast.makeText(RegisterActivity.this, resid + ": Confirm Password and 
Password Field doesn't Match.", Toast.LENGTH_LONG).show();

或者

Toast.makeText(RegisterActivity.this, "resid: Confirm Password and 
Password Field doesn't Match.", Toast.LENGTH_LONG).show();

取决于什么是渣油。我希望你明白了