[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
    • 분류 전체보기 (85)
      • Android (61)
        • ADB (4)
        • Architecture (1)
        • Data (5)
        • Firebase (2)
        • Network & Connecting (4)
        • Security & Privacy (3)
        • UI (25)
        • 기타 (3)
        • 이슈 처리 (14)
      • Android Studio (5)
      • Git (3)
      • 작업 일지 (16)
  • 최근 글

  • 인기 글

  • 태그

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

    • GitHub
  • 블로그 메뉴

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

티스토리툴바