inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

1:1채팅 만들기(Android + Kotlin + Firebase)

회원가입 구현

전 실패뜨는데 왜 성공이 안뜨는가요?

528

Tkhp Sch

작성한 질문수 35

0

com.example.chatting_video을 이름 바꾸는 것도 알려주세요.
example 대신에 제 아이디 tkhpsch 쓰고 싶은데 안되네요.
어떻게 성공했는지 알고 싶어요. Log.d에서 Log 임포트가 안되는데요?

package
com.example.chatting_video

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import com.google.firebase.auth.FirebaseAuth
import kotlinx.android.synthetic.main.activity_main.*
import android.util.Log as Log
import kotlinx.android.synthetic.main.activity_main.login_button_main as login_button_main


class MainActivity : AppCompatActivity() {

private lateinit var auth: FirebaseAuth// ...

private val TAG: String = MainActivity::class.java.simpleName


override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.
activity_main)

auth = FirebaseAuth.getInstance()

auth.createUserWithEmailAndPassword("tkhpsch@gmail.com", "123123")
.addOnCompleteListener(
this) { task ->
if (task.isSuccessful) {
// Sign in success, update UI with the signed-in user's information

Log.d(TAG, "성공")

}
else {

Log.d(
TAG, "실패")


}
}

login_button_main.setOnClickListener {

val intent = Intent(this, LoginActivity::class.java)
startActivity(intent)
}



}


}










04/26 10:18:54: Launching 'app' on Pixel_3a_API_30_x86. Install successfully finished in 630 ms. $ adb shell am start -n "com.example.chatting_video/com.example.chatting_video.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER Connected to process 11589 on device 'Pixel_3a_API_30_x86 [emulator-5554]'. Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. D/NetworkSecurityConfig: No Network Security Config specified, using platform default D/NetworkSecurityConfig: No Network Security Config specified, using platform default W/ComponentDiscovery: Class com.google.firebase.dynamicloading.DynamicLoadingRegistrar is not an found. I/FirebaseApp: Device unlocked: initializing all Firebase APIs for app [DEFAULT] I/DynamiteModule: Considering local module com.google.android.gms.measurement.dynamite:48 and remote module com.google.android.gms.measurement.dynamite:13 Selected local version of com.google.android.gms.measurement.dynamite I/FirebaseInitProvider: FirebaseApp initialization successful D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so I/FirebaseAuth: [FirebaseAuth:] Preparing to create service connection to fallback implementation V/FA: onActivityCreated W/.chatting_vide: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) W/.chatting_vide: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) V/FA: App measurement collection enabled V/FA: App measurement enabled for app package, google app id: com.example.chatting_video, 1:29337236477:android:aa8b18060dba662ba25f94 I/FA: App measurement initialized, version: 39065 To enable debug logging run: adb shell setprop log.tag.FA VERBOSE To enable faster debug mode event logging run: adb shell setprop debug.firebase.analytics.app com.example.chatting_video D/FA: Debug-level message logging enabled V/FA: Connecting to remote service V/FA: Connection attempt already in progress V/FA: Connection attempt already in progress V/FA: Activity resumed, time: 16001157 I/FA: Tag Manager is not found and thus will not be used D/HostConnection: HostConnection::get() New Host Connection established 0xefdad110, tid 11639 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0 W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... D/EGL_emulation: eglCreateContext: 0xefdaca80: maj 3 min 0 rcv 3 D/EGL_emulation: eglMakeCurrent: 0xefdaca80: ver 3 0 (tinfo 0xf00fa290) (first time) V/FA: Connection attempt already in progress V/FA: Connection attempt already in progress I/Gralloc4: mapper 4.x is not supported D/HostConnection: createUnique: call D/HostConnection: HostConnection::get() New Host Connection established 0xefdac770, tid 11639 D/goldfish-address-space: allocate: Ask for block of size 0x100 D/goldfish-address-space: allocate: ioctl allocate returned offset 0x3fdef0000 size 0x2000 D/HostConnection: HostComposition ext ANDROID_EMU_CHECKSUM_HELPER_v1 ANDROID_EMU_native_sync_v2 ANDROID_EMU_native_sync_v3 ANDROID_EMU_native_sync_v4 ANDROID_EMU_dma_v1 ANDROID_EMU_direct_mem ANDROID_EMU_host_composition_v1 ANDROID_EMU_host_composition_v2 ANDROID_EMU_vulkan ANDROID_EMU_deferred_vulkan_commands ANDROID_EMU_vulkan_null_optional_strings ANDROID_EMU_vulkan_create_resources_with_requirements ANDROID_EMU_YUV_Cache ANDROID_EMU_async_unmap_buffer ANDROID_EMU_vulkan_ignored_handles ANDROID_EMU_vulkan_free_memory_sync ANDROID_EMU_vulkan_shader_float16_int8 ANDROID_EMU_vulkan_async_queue_submit GL_OES_EGL_image_external_essl3 GL_OES_vertex_array_object GL_KHR_texture_compression_astc_ldr ANDROID_EMU_host_side_tracing ANDROID_EMU_async_frame_commands ANDROID_EMU_gles_max_version_3_0 W/System: Ignoring header X-Firebase-Locale because its value was null. D/FA: Connected to remote service V/FA: Processing queued up service tasks: 5 D/MainActivity: 실패 V/FA: Inactivity, disconnecting from the service

firebase kotlin android

답변 1

0

개복치개발자

안녕하세요!

https://www.inflearn.com/questions/195198

위의 글 처럼 에러를 한번 찍어볼까요?

Groupy 라이브러리 지원이 되지 않습니다.

0

171

1

Firebase가 아닌 my sql

0

360

0

4분 3초에서 그룹 어뎁터와 그룹뷰 홀더 빨간색 글씨

0

293

2

7강 RecyclerView 강의에서 질문있습니다.

0

613

3

개복님 말씀대루 다했는데 도중에 앱이 꺼져용

0

412

1

안녕하세요. 말씀하신 import 추가했는데 오류가 또 뜨네요 ㅠ

0

476

2

안녕하세욤 강의 잘보고 있습니다

0

292

2

파이어스토어,리얼타임데이터베이스 uid 관련 질문입니다.

0

310

2

recyclerview_list 이부분이 안뜹니다.

0

275

1

firebase 업데이트 된버전에 코드를 알 수 있을 까요?

0

226

1

Firebase 연동 질문입니다.

0

293

1

auth.createUserWithEmailAndPassword 유저생성이안돼요

0

416

1

개복치님 리사이클러뷰 질문입니다.

0

339

3

recycleview강의에서 4분 12초에 .adapter부분이 빨간색이 떠요.

0

449

3

.adapter부분이 빨간색이 떠요. 어떤게 빠진건가요?

0

217

1

RecyclerView 7분중 GroupieViewHolder 자동입력과 UserItem을 Implement Members하는법을 모르겠어요.

0

405

3

13강 리얼타임 수강중입니다. 말씀대로 LOG.D(TAG,MSG 결과입니다. )

0

526

6

GroupAdapter와 GroupieViewHolder 자동입력이 안떠요.

0

280

1

auth = FirebaseAuth.getInstance를 auth = Firebase.auth로 바꾸면 오류가 떠요.

0

264

0

빨간색 item을 Import하는 법과 GroupViewHolder 자동입력되는 법과 Try it out:2.9.0 다운받는 법좀 알려주세요!

0

259

0

13강 리얼타임 수강중입니다.

0

441

1

ChatListActivity에서 디자인 (or 텍스트) 메뉴가 없어서 리사이클뷰를 키지 못합니다.

0

342

0

이 코드를 어디에 넣는건가요? db.collection(

0

250

0

빨간색 글씨때문에 막혀요. 그리고 Cloud Firestore 초기화 코드가 달라요.

0

942

2