2017-11-27 5 views
-1

오늘 안드로이드 용 Firebase Ui로 앱을 만들고 싶습니다. 앱을 빌드 할 때 몇 가지 오류가 있습니다.Android Studio 오류 : 9,13 16,17 23,9

Error:(16, 17) error: cannot find symbol variable FirebaseAuth 
Error:(9, 13) error: cannot find symbol class FirebaseAuth 
Error:(23, 9) error: cannot find symbol class FirebaseUser 

도와 주시겠습니까?

enter image description here

+2

이미지 대신 오류 및 코드를 게시하는 것이 더 좋을 것입니다 ... –

+0

예하지만 텍스트입니다. 코드가 아닙니다. 당신이 응용 프로그램을 작성하는 경우 그것은 오류 : – JLachmuth

답변

0

당신은 코드의 다음 줄을 추가해야합니다 : 당신의 build.gradle 파일에서

compile "com.google.firebase:firebase-database:11.6.0" 
compile 'com.google.firebase:firebase-auth:11.6.0' 

.

+0

+1 고마워 : D erros가 떨어져 있습니다. 하지만 지금은 말합 오류 : ': app : processDebugGoogleServices'작업에 대한 실행이 실패했습니다. > google-services 플러그인의 버전을 업데이트하여 버전 충돌을 해결하십시오 (최신 버전에 대한 정보는 https://bintray.com/android/android-tools/com.google.gms.google-services에서 확인할 수 있음). /) 또는 com.google.android.gms의 버전을 11.6.0으로 업데이트하십시오. – JLachmuth

+0

이것은 기본적으로 다른 문제에 관한 또 다른 질문입니다. 그러나이를 위해 다음 코드 줄도 추가하십시오. 'comile.android.gms : play-services-auth : 11.6.0' '. 내 대답이 초기 질문에 도움이되었다는 것을 알았 으면 투표 화살표 아래의 왼쪽에있는 체크 표시를 클릭하여 내 대답을 수락하십시오. 녹색으로 색상을 변경해야합니다. 감사! –

+0

+1 이제 오류 : (34, 13) 오류 : (34, 13) com.google.android.gm:play-services-auth:11.6.0 Install Repository and sync project
Show in File
Show in Project Structure dialog JLachmuth