but arent usable inside my project. Intellij does not recognize the packages/classes.
Trying to reference to them using
Class.forName
during runtime does also not work. Generated classes from Android Room (kapt) are usable..
What am I missing?
e
ephemient
01/17/2022, 1:11 AM
https://github.com/google/ksp/issues/746 intellij doesn't recognize the ksp source roots without some additional effort, but it should work when compiling with Gradle out of the box
d
Dutch
01/17/2022, 1:25 AM
Thank you, will check that as the first thing in the morning.
Dutch
01/17/2022, 1:27 AM
What I noticed; My files are not generated under:
build/generated/ksp/main/kotlin/
but under:
build/generated/ksp/debug/<packagename>
So I used that path in my gradle file
e
ephemient
01/17/2022, 2:03 AM
android, presumably? that will fail for a release build