반응형
[Android] 안드로이드 스튜디오 2021.2.1버전 chipmunk firebase realtime database gradle 설정
발생 오류
firebase 설정 시 나오는 가이드 문서와 gradle 형식이 다름.
문제 원인
firebase 설정 시 나오는 가이드 문서와 gradle 형식이 다름.
해결 방법
project 수준 gradle
plugins {
id 'com.google.gms.google-services' version '4.3.13' apply false
}
app 수준 gradle (gradle)
plugins {
id 'com.android.application'
//firebase
id 'com.google.gms.google-services'
}
dependencies {
//firebase
implementation platform('com.google.firebase:firebase-bom:30.2.0')
implementation 'com.google.firebase:firebase-database'
}
마무리
파이어베이스 초기 설정시 보여주는 가이드 문서가 구버전이라 혼란을 겼는 사람이 많을 것 같다. 도움이 되었으면 좋겠다.
'안드로이드 > 오류, 삽질 및 해결방법' 카테고리의 다른 글
[Android/Unity/Kotlin] 안드로이드 프로젝트 UnityPlayerActivity 실행 에러 (0) | 2023.04.20 |
---|---|
[Android] Hilt 라이브러리 Fragment 버전 호환 이슈 (1) | 2023.03.20 |
[Android/Kotlin] Live Data 테스트 오류 (Method getMainLooper in android.os.Looper not mocked.) (0) | 2022.04.14 |
[Android/Kotlin] Koin 라이브러리 설정 문제 (0) | 2022.04.08 |
[Android/Kotlin] Navigation Safe Args 에러 해결 (0) | 2022.02.17 |