I've been working on an code generation annotation...
# announcements
o
I've been working on an code generation annotation processor in kotlin. The generated code is saved in whatever
kapt.kotlin.generated
is pointing to. In my case its in
/generated/source/kaptKotlin/
When you want to access the generated functions, android cannot find them unless you add to your build.gradle
Copy code
android {
…
sourceSets {
main {
java {
     srcDir "${buildDir.absolutePath}/generated/source/kaptKotlin/"
}
           		}
   	}
}
is there a way to avoid this?
Bump
stackoverflow 1
Idea, module, and generateSourceDirs, set to path