[Android] Could not find method kapt() for arguments ···

2023. 1. 6. 10:23·Android/이슈 처리
반응형

Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method kapt() for arguments [androidx.room:room-compiler:2.4.3] on object of type org․gradle․api․internal․artifacts․dsl.dependencies.DefaultDependencyHandler.

 

build.gradle에서 kapt 관련 의존성을 추가하고 sync를 했을 때 에러가 발생했다.

원인은 kotlin-kapt을 plugins에 추가하지 않아서였다.

plugins {
    id 'com.android.application'
    id 'org.jetbrains.kotlin.android'
    id 'kotlin-kapt'
}
반응형

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

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

  • 인기 글

  • 태그

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

    • GitHub
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • hELLO· Designed By정상우.v4.10.4
O_Gyong
[Android] Could not find method kapt() for arguments ···
상단으로

티스토리툴바