Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | |||||
| 3 | 4 | 5 | 6 | 7 | 8 | 9 |
| 10 | 11 | 12 | 13 | 14 | 15 | 16 |
| 17 | 18 | 19 | 20 | 21 | 22 | 23 |
| 24 | 25 | 26 | 27 | 28 | 29 | 30 |
| 31 |
Tags
- matplotlib
- Python
- pandas
- wcss
- list
- DataAccess
- len()
- function
- del
- append()
- insert()
- 반복문
- Dictionary
- string
- IN
- 분류 결과표
- 최댓값
- DataFrame
- count()
- dendrogram
- nan
- 최솟값
- hierarchical_clustering
- Machine Learning
- 덴드로그램
- numpy
- data
- sklearn
- elbow method
- analizer
Archives
- Today
- Total
개발공부
[Firebase] Realtime DataBase를 사용하기 위한 환경 설정 본문
firebase의 Realtime DataBase를 사용하기 위해 환경 설정을 하는데 어려움을 겪었어서
제가 설정한 방법을 게시합니다.
firebase 콘솔에서 앱추가를 하여 google-services.json 파일을 받은 상태라고 가정하고 진행하겠습니다.
1. 안드로이드 스튜디오의 폴더 형식을 Project로 변경합니다.

2. 받은 google-serviecs.json 파일을 app 폴더 안에 넣습니다.

3. 프로젝트 수준 gradle 파일의 plugins에 아래 형식을 추가합니다.
plugins {
id "com.google.gms.google-services" version "4.3.10" apply false
}
4. 모듈 수준 gradel 파일의 plugins와 dependencies에 아래 형식을 추가합니다.
plugins {
id 'com.google.gms.google-services'
}
dependencies {
implementation platform('com.google.firebase:firebase-bom:30.3.2')
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-database'
implementation 'commons-io:commons-io:2.4'
}
apply plugin: 'com.google.gms.google-services'
5. Sync를 누릅니다.
6. SDK Manager로 들어갑니다.

7. SDK Tools의 Google Play services를 체크 후 OK를 눌러 적용해줍니다.

'Android' 카테고리의 다른 글
| [Android] GPS 위도, 경도 정보 받기, 권한 설정 (0) | 2022.07.29 |
|---|---|
| [Android] Retrofit2 라이브러리 form-data 형식 파일, 텍스트 전송하기(Multipart form 이용) (0) | 2022.07.26 |
| [Android] Progress Dialog 프로그레스 다이얼로그 생성/제거 (0) | 2022.07.25 |
| [Android] Retrofit2 라이브러리를 이용한 POST로 API 호출하여 처리하는 방법 (0) | 2022.07.21 |
| [Android] Retrofit2 라이브러리 사용을 위한 설정 방법 (0) | 2022.07.21 |