회원가입을 하면 no로 나옵니다
265
작성한 질문수 3
gradle - project
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.google.gms:google-services:4.3.15'
}
}
plugins {
id 'com.android.application' version '8.0.1' apply false
id 'com.android.library' version '8.0.1' apply false
id 'org.jetbrains.kotlin.android' version '1.8.20' apply false
}gradle - app
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'com.google.gms.google-services'
}
android {
namespace 'com.example.myapplication'
compileSdk 33
defaultConfig {
applicationId "com.example.myapplication"
minSdk 24
targetSdk 33
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies {
implementation 'androidx.core:core-ktx:1.8.0'
implementation 'androidx.appcompat:appcompat:1.6.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation platform('com.google.firebase:firebase-bom:32.0.0')
implementation 'com.google.firebase:firebase-analytics-ktx'
implementation 'com.google.firebase:firebase-auth-ktx'
}MainActivity
package com.example.myapplication
import android.content.ContentValues.TAG
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.util.Log
import android.widget.Button
import android.widget.Toast
import com.google.firebase.auth.FirebaseAuth
import com.google.firebase.auth.ktx.auth
import com.google.firebase.ktx.Firebase
class MainActivity : AppCompatActivity() {
private lateinit var auth: FirebaseAuth
override fun onCreate(savedInstanceState: Bundle?) {
auth = Firebase.auth
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val joinBtnClicked=findViewById<Button>(R.id.joinBtn)
joinBtnClicked.setOnClickListener {
auth.createUserWithEmailAndPassword("asd@asd.com", "12341234")
.addOnCompleteListener(this) { task ->
if (task.isSuccessful) {
Toast.makeText(this,"ok",Toast.LENGTH_SHORT).show()
} else {
Toast.makeText(this,"no",Toast.LENGTH_SHORT).show()
Log.e(TAG, "createUserWithEmail:failure", task.exception)
}
}
}
}
}

답변 1
0
잘 하셨네요
이 로그에서
Log.e(TAG, "createUserWithEmail:failure", task.exception)
createUserWithEmail이제 위의 부분으로 시작하는 로그 에러메세지가 나올겁니다.
로그창에서 뭐라고 나오나오는지 알려주세요~
이와는 별개로 현재 [초급편]의 경우 안드로이드 개발을 처음하시는 분들 대상이 아니기 때문에
설명이 생략된 부분이 있습니다. 아래 강의를 선 수강 후 들으시는 것을 권장드리는 편입니다~
1
firebase 들어가니까 사용자가 추가되었는데 추가되는 시간이 너무 오래걸려서 바로 확인을 못했습니다 ㅠㅠ
또한 매니페스트 파일에 코드를 추가해서 된건지 그냥 된건지 모르겠네요
<uses-permission android:name="android.permission.INTERNET" />
이미지가 기본이미지인지 확인
0
132
1
NavController error 발생
0
141
1
fragment 생성하고 메인에서 불러왔는데 안뜹니다.
0
141
2
67강 댓글
0
100
2
7강 데이터바인딩 에러
0
116
2
Firebase 스토리지 유료화 문제
1
297
2
게시글 이미지가 파이어베이스에 저장되지 않습니다.
0
181
2
AVD 갤러리에 이미지 저장 안되는 문제
0
240
2
이미지 받아오는 방법?
0
204
2
회원탈퇴 기능을 추가하려고 합니다.
0
188
2
상태바 질문 드립니다.
0
111
1
섹션2 인트로 페이지 꾸미기 질문 드립니다.
0
110
1
게시판 글을 길게 쓸경우
0
124
2
로그인 로그아웃
0
177
2
갤럭시 연결시 게시판에 업로드한 사진이 보이지 않아요.
0
207
2
웹뷰 AVD 실행안됨
0
191
1
자막켜기가 안되요 ㅜ.ㅜ
1
185
1
리사이클러뷰, 그리드레이아웃 오류
0
186
2
리사이클러뷰 오류 해결 방법이 궁금합니다.
0
194
1
firebase 스마트폰으로 연결이 안되는데 원인이 있을까요
0
259
2
안드로이드 스튜디오 게시글 이미지 업로드 유무
0
217
1
firebase 설정 오류
0
304
2
홈 화면 커뮤니티
0
178
1
게시판 글 읽기
0
240
2






log창에서 이렇게 나오고 있습니다