My generated sources can be found under `builddir/...
# ksp
d
My generated sources can be found under
builddir/generated/*
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
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
Thank you, will check that as the first thing in the morning.
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
android, presumably? that will fail for a release build