https://kotlinlang.org logo
Title
b

bajicdusko

08/05/2017, 6:31 PM
Hey people, after each clean of the project I’m getting a dozen of ‘unresolved reference` errors pointing to
apply plugin: 'kotlin'
library-module in android studio. After second build everything is ok, and each following build, however building after clean produces errors. I gotta feeling that classes are not generated at compile time, however, android studio does not show any error in the editor and “unresolved” classes can be navigated without problems. There is one question on SO with similar problem, but apparently, new version fixed this: https://stackoverflow.com/questions/35798993/unresolved-reference-kotlin-needs-2-builds-after-clean-to-pick-up-code-when-usi I’m using
apply plugin: 'kotlin-kapt'
for dagger, parceler and requery processing.
ext.kotlin_version = '1.1.3-2
com.android.tools.build:gradle:3.0.0-alpha9
AS 3 Cannary 9
r

rockerhieu

08/06/2017, 2:15 AM
Are you using kapt for all annotation processor? Especially this one
kapt com.android.databinding:compiler:3.0.0-alpha9
b

bajicdusko

08/06/2017, 9:26 AM
hey @rockerhieu , yes, kapt is used for all annotation processing. I don’t use databinding in this app though, just the three libs I’ve mentioned above. dagger, requery and parceler