Execution failed for task ':app:kaptDebugKotlin'. dagger code example
Example: Execution failed for task ':app:kaptDebugKotlin'
If you are using the Room database and getting a KAPT error, just check your
Database declarations
Data Access Object declarations
Data class fields
It's a problem arising due to improper usage of annotations of Room. For more information use your build logs.