kevinmost
12/15/2016, 2:10 PMAnyone 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 afrom the command-line, it works, and if I dig into./gradlew build
, 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/generated/source/kapt/main
). I havebuild/
in my build.gradle, as well.kapt { generateStubs = true }
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 guessLet me know if anyone has run into this. Thanks!