skip to Main Content

Android Studio – Execution failed for task ':app:kaptDebugKotlin' – Error Occurs while using Hilt

Added hilt dependencies: Build.gradle(project) def hilt_version = "2.38.1" classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version" Build.gradle(app) plugins { id 'dagger.hilt.android.plugin' .... } .... dependencies { implementation "com.google.dagger:hilt-android:2.38.1" kapt "com.google.dagger:hilt-compiler:2.38.1" ....... } I also have a global application class: MyApplication.kt @HiltAndroidApp class MyApplication : Application() In…

VIEW QUESTION
Back To Top
Search