I’m trying to update to kotlin 1.8.10 but when I d...
# gradle
z
I’m trying to update to kotlin 1.8.10 but when I do so, I get an unhelpful error with
kapt
I have
kotlin("kapt")
in my
app
build.gradle and after upgrading I get the following error:
Copy code
* Where:
Build file '/Users/zacharysperske/Documents/workspace/android/app/build.gradle.kts' line: 3

* What went wrong:
An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.kapt']
> Failed to apply plugin 'org.jetbrains.kotlin.kapt'.
   > java.lang.reflect.UndeclaredThrowableException (no error message)

* Try:
> Run with --info or --debug option to get more log output.

* Exception is:
org.gradle.api.plugins.InvalidPluginException: An exception occurred applying plugin request [id: 'org.jetbrains.kotlin.kapt']
Full stacktrace in thread:
Untitled
a
Copy code
Caused by: java.lang.ClassNotFoundException: org.jetbrains.kotlin.gradle.internal.KaptWithKotlincTask
        at org.gradle.android.workarounds.RoomSchemaLocationWorkaround.getKaptWithKotlincTaskClass(RoomSchemaLocationWorkaround.groovy:351)
Looks like an incompatibility with Android Room?
try updating this plugin, or waiting for a release that includes this PR https://github.com/gradle/android-cache-fix-gradle-plugin/pull/403
z
🤦 I should have spotted that. Thank you Adam! Updating the cache-fix plugin fixed the issue