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 'com.android.application'
id 'kotlin-android'
id 'kotlin-kapt' // include this
}
For older format of Gradle
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-kapt'