Execution failed for task ':app:kaptDebugKotlin'

I had such kind of problem

Execution failed for task ‘:app:kaptDebugKotlin’. > A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptExecution > java.lang.reflect.InvocationTargetException (no error message)

It depends on:

implementation ‘androidx.room:room-runtime:2.1.0-alpha04’
kapt ‘androidx.room:room-compiler:2.1.0-alpha04’

I chsnged that on:

implementation ‘androidx.room:room-runtime:2.2.5’
kapt ‘androidx.room:room-compiler:2.2.5’

End my problem was solved

2 Likes

had the same problem and upgraded my dependencies to :
implementation ‘androidx.room:room-runtime:2.3.0’
kapt ‘androidx.room:room-compiler:2.3.0’

also worked. (as of 9/7/2021)