Hello all, upgrading to add KSP to my build, instructions here: <https://developer.android.com/build...
b
Hello all, upgrading to add KSP to my build, instructions here: https://developer.android.com/build/migrate-to-ksp. When doing so I am getting the following error. Anyone else running into this?
Copy code
java.lang.NoSuchMethodError: 'kotlin.sequences.Sequence com.google.devtools.ksp.processing.Resolver.getPackagesWithAnnotation(java.lang.String)'
j
Check for new versions...
👍 1
b
Bumped my kotlin to 1.9.10. Now:
Copy code
Unable to load class 'org.jetbrains.kotlin.gradle.plugin.mpp.pm20.KotlinCompilationData'.
j
Did you update ksp plugin?
c
KSP version and Kotlin version need to align. The KSP version is suffixed with the Kotlin version it supports.
b
Moving backwards to 1.8.10
Copy code
kotlin_version = '1.8.10'
...
id 'com.google.devtools.ksp' version '1.8.10-1.0.9' apply false
Still produces the sequence error. Do I have another dependency that ksp doesn’t like?
j
just use kotlin
1.9.10
and ksp
1.9.10-1.0.13
, if that is not working, you may have a bigger problem
if you are using compose, room or dagger ... you may have to update those too
compose compiler*
n
Just use KAPT, KSP is so problematic it's not worth the hassle unless you have a specific problem with the KAPT version.
🔥 1
b
Yeah, I am rolling back to kapt only. Spent 2 days trying to just get room using ksp. Adding ksp dep and updating room dep to ksp and I run into the issues above. This is following the android docs 100%. I will try again at a later time
Just adding ksp dependency I see the issue, without modifying my room dependency. Not sure what “bigger problems” I would have.
786 Views