Trouble With User Registration In Firebase
I've successfully connected to firebase and added all required dependencies but i am unable to register users into it.The code I wrote is in this picture I've also provided the gra
Solution 1:
You'd need to give more information before the community can help solve your problem for you.
To get more information, I'd suggest logging out the exception and sharing it. Add the following line in the else{} block of your code:
Log.w(TAG, "createUserWithEmail:failure", task.getException());
So it looks something like this (I wasn't able to copy paste your code because it was an image - it's always helpful to share your code as text in questions so others can copy and correct it):
mAuth.createUserWithEmailAndPassword(email, password)
.addOnCompleteListener(this, new OnCompleteListener<AuthResult>() {
@Override
public void onComplete(@NonNull Task<AuthResult> task) {
if (task.isSuccessful()) {
// your code here
} else {
//your toast here Log.w(TAG,"createUserWithEmail:failure",task.getException());
}
The logged out error can be found in the Logcat section at the bottom of Android Studio:
Thanks
Post a Comment for "Trouble With User Registration In Firebase"