일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 테마
- asLiveData()
- ViewModel
- kotlin
- TypeConverter
- Datastore
- 개발자
- 주석
- 일렉트론
- nav_graph
- 안드로이드
- BottomNavigationView
- imageview
- 스플래시
- Navigation Component
- 취업
- Gradle
- 면접
- hilt
- android studio
- recyclerview
- Jetpack Compose
- Android
- Binding Adapter
- Safe Args
- Livedata
- themes.xml
- fragment
- electron
- room
Archives
- Today
- Total
목록singleton (1)
나만 보는 일기장

java.lang.IllegalStateException: There are multiple DataStores active for the same file: [...] You should either maintain your DataStore as a singleton or confirm that there is no two DataStore's active on the same file (by confirming that the scope is cancelled). 로그인 기능을 구현할 때 메인 액티비티에서 DataStore에 접근해 저장된 토큰값이 있는지 확인하고 없으면 로그인 화면으로 넘기는 방식을 구현하려 했는데, 로그인을 처리하는 액티비티에서도 DataStore를 사용해서 그런지 로그인 화면으..
개발/Android
2021. 12. 1. 12:18