[Android] error: To use Coroutine features, you must ···

2023. 1. 26. 15:15·Android/이슈 처리
반응형

error: To use Coroutine features, you must add `ktx` artifact from Room as a dependency. androidx.room:room-ktx:<version>

 

Room 라이브러리를 사용하고 있었고, Dao에서 suspend를 추가하였는데 해당 에러가 발생했다.

 

Dao를 선언할 때 suspend 키워드를 붙이면 Room에서 suspend 함수로 구현을 해주는데

해당 기능을 해주는 라이브러리가 없어서 발생한 에러인 것 같다.

 

implementation "androidx.room:room-ktx:2.4.3"

gradle에 추가하면서 문제를 해결됐다.

반응형

'Android > 이슈 처리' 카테고리의 다른 글

[Android] :app:hiltJavaCompileDebug  (0) 2023.03.16
[Android] Permission denied (publickey).  (0) 2023.03.08
[Android] Duplicate class androidx.lifecycle ···  (0) 2023.01.09
[Android] Could not find method kapt() for arguments ···  (0) 2023.01.06
[Android] Could not resolve all files for configuration ':app:debugCompileClasspath'.  (0) 2022.12.26
'Android/이슈 처리' 카테고리의 다른 글
  • [Android] :app:hiltJavaCompileDebug
  • [Android] Permission denied (publickey).
  • [Android] Duplicate class androidx.lifecycle ···
  • [Android] Could not find method kapt() for arguments ···
O_Gyong
O_Gyong
안드로이드 기술 정리
  • O_Gyong
    O_Gyong's TECH
    O_Gyong
    • 분류 전체보기 (81)
      • Android (58)
        • ADB (4)
        • Architecture (1)
        • Data (5)
        • Firebase (2)
        • Network & Connecting (4)
        • Security & Privacy (3)
        • UI (24)
        • 기타 (3)
        • 이슈 처리 (14)
      • Android Studio (5)
      • Git (3)
      • 작업 일지 (13)
  • 최근 글

  • 인기 글

  • 태그

    ADB
    issue
    github
    Kotlin
    CameraX
    compose
    Paging3
    Android Studio
    Andoird
    webview
    MQTT
    Bluetooth
    Pagination
    TabLayout
    SharedPreferences
    in-app update
    paging
    flow
    Navigation
    loading
    해상도
    hilt
    kizitonwose
    recyclerview
    Android
    GIT
    CalendarView
    BLE
    Room
    firebase
  • 링크

    • GitHub
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • hELLO· Designed By정상우.v4.10.4
O_Gyong
[Android] error: To use Coroutine features, you must ···
상단으로

티스토리툴바