jitpack.io icon indicating copy to clipboard operation
jitpack.io copied to clipboard

NoSuchMethodException using Room KSP on Jitpack build

Open mikedawson opened this issue 3 years ago • 0 comments

I'm seeing a strange exception using the Room Kotlin Symbol Processor (KSP) as part of my build:

e: java.lang.NoSuchMethodError: java.lang.reflect.Constructor.trySetAccessible()Z
	at androidx.room.compiler.processing.ksp.KSTypeExtKt$typeVarNameConstructor$2.invoke(KSTypeExt.kt:279)
	at androidx.room.compiler.processing.ksp.KSTypeExtKt$typeVarNameConstructor$2.invoke(KSTypeExt.kt:273)
	at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)

This does not happen on my laptop or Jenkins server. On Jitpack it's flaky: some builds run fine, others don't (even if the only change made was to change the version number)

Failed build log link: https://jitpack.io/com/github/UstadMobile/door/0.0.62c/build.log

Build 0.0.62 failed. 0.0.62a (where the only change was to the version number) succeeded.

mikedawson avatar Sep 12 '22 18:09 mikedawson