• 카테고리

    질문 & 답변
  • 세부 분야

    모바일 앱 개발

  • 해결 여부

    미해결

auth.createUserWithEmailAndPassword 유저생성이안돼요

21.09.22 05:37 작성 조회수 257

0

이메일 비밀번호로 계정생성 허용도 했고 usesCleartextTraffic 도 해봤는데 MainActivity에서 Log.d 부분에서 Logcat에 실패가 찍힙니다. 앞부분부터 막히는부분 많은거보면 코드가 요즘이랑 맞지않는부분이 많은거같네요.  막히는부분 코드 수정해서 올려주시던가 해야할듯

답변 1

답변을 작성해보세요.

1

안녕하세요 보통 이 부분은 원인을 로그를 보면 나오는데

아래 부분에 로그 메세지를 확인해보시겠어요?


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)


           
}
       
}