我正在制作一个firebase项目并收到此错误
无法开始活动 ComponentInfo {com.root.firebase / com.root.firebase.MainActivity}: java的。郎。非法参数异常:给定String为空或为空
我的错误代码行是:
firebaseAuth.createUserWithEmailAndPassword(email, password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful())
{
Toast.makeText(MainActivity.this, "Registered Successfully", Toast.LENGTH_SHORT).show();
} else
{
Toast.makeText(MainActivity.this, "Could not Register... Please try again later", Toast.LENGTH_SHORT).show();
}
}
});
答案 0 :(得分:0)
检查您的电子邮件或密码是否为空