Inflearn Community Q&A
auth.createUserWithEmailAndPassword 유저생성이안돼요
Written on
·
403
0
이메일 비밀번호로 계정생성 허용도 했고 usesCleartextTraffic 도 해봤는데 MainActivity에서 Log.d 부분에서 Logcat에 실패가 찍힙니다. 앞부분부터 막히는부분 많은거보면 코드가 요즘이랑 맞지않는부분이 많은거같네요. 막히는부분 코드 수정해서 올려주시던가 해야할듯
androidkotlinfirebase
Answer 1
1
bokchi
Instructor
안녕하세요 보통 이 부분은 원인을 로그를 보면 나오는데
아래 부분에 로그 메세지를 확인해보시겠어요?
Log.w(TAG, "createUserWithEmail:failure", task.exception)
auth.createUserWithEmailAndPassword(email, password)
.addOnCompleteListener(this) { task ->
if (task.isSuccessful) {
// Sign in success, update UI with the signed-in user's information
Log.d(TAG, "createUserWithEmail:success")
} else {
// If sign in fails, display a message to the user.
Log.w(TAG, "createUserWithEmail:failure", task.exception)
}
}





