I posted this over in <#C2R77UD35|kapt>, but now I...
# android
k
I posted this over in #kapt, but now I'm thinking that people here might have an answer because it kind of has more to do with Android Studio:
Anyone seen issues with Kotlin + kapt (1, not 2) + Dagger 2 and not being able to reference the generated component classes only within Android Studio/IntelliJ? If I do a
./gradlew build
from the command-line, it works, and if I dig into
build/generated/source/kapt/main
, I see my generate component class, but AS marks the class in red because it can't resolve it, because it's within a folder that's excluded (
build/
). I have
kapt { generateStubs = true }
in my build.gradle, as well.
To reiterate, it is compiling successfully, AS is just marking the class as not existing because that folder isn't added to the classpath for some reason, I guess
Let me know if anyone has run into this. Thanks!