본문 바로가기

나만 보는 일기장

검색하기
나만 보는 일기장
프로필사진 Patrick0422

  • 분류 전체보기 (48)
    • 개발 (46)
      • Android (39)
      • Electron (2)
      • 기타 (4)
    • 그냥 (2)
Guestbook
Notice
Recent Posts
Recent Comments
Link
  • 깃허브
«   2025/09   »
일 월 화 수 목 금 토
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
Tags
  • fragment
  • TypeConverter
  • 안드로이드
  • 개발자
  • room
  • recyclerview
  • Binding Adapter
  • Android
  • Livedata
  • nav_graph
  • Jetpack Compose
  • Navigation Component
  • imageview
  • ViewModel
  • BottomNavigationView
  • kotlin
  • 주석
  • Safe Args
  • 면접
  • android studio
  • themes.xml
  • 스플래시
  • Datastore
  • asLiveData()
  • 테마
  • hilt
  • electron
  • 일렉트론
  • 취업
  • Gradle
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록singleton (1)

나만 보는 일기장

[DataStore] DataStore 싱글톤으로 쓰기

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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바