일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- hilt
- 개발자
- TypeConverter
- room
- Datastore
- BottomNavigationView
- 안드로이드
- kotlin
- 스플래시
- electron
- 테마
- fragment
- nav_graph
- themes.xml
- Binding Adapter
- ViewModel
- Android
- 주석
- 일렉트론
- 취업
- Navigation Component
- imageview
- Jetpack Compose
- recyclerview
- Safe Args
- asLiveData()
- Livedata
- 면접
- android studio
- Gradle
Archives
- Today
- Total
목록singleton (1)
나만 보는 일기장
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/Ye9JH/btrmCMNEOfb/Wc8pheB20PcsRn90bAML2K/img.png)
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