Error: Could Not Find Method Kapt for Arguments

December 13, 2021
Caused by: org.gradle.internal.metaobject.AbstractDynamicObject$CustomMessageMissingMethodException: Could not find method kapt() for arguments [androidx.hilt:hilt-compiler:1.0.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler

Edit Module build.gradle.

plugins {
    id ''
    id 'kotlin-android'
    id 'kotlin-kapt' // include this

For older format of Gradle

apply plugin: ''
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.