Skip to content

Instantly share code, notes, and snippets.

@lmller
Last active March 23, 2018 05:23
Show Gist options
  • Save lmller/3c43eff454f7508474210fb2491b488a to your computer and use it in GitHub Desktop.
Save lmller/3c43eff454f7508474210fb2491b488a to your computer and use it in GitHub Desktop.
the usual “something with kotlin doesn’t work” check list:
  • Kotlin Plugin up to date?
  • Gradle Plugin up to date?
  • Kotlin version up to date?
  • only use kapt for annotation processing (don't mix Android Studio's annotationProcessor, apt and kapt, or any other processor)
  • use kapt3 by using apply plugin: 'kotlin-kapt'
  • don’t use kapt { generateStubs true } } at all, it will not work with kapt3
  • using databinding? then databinding compiler version needs to be the same as gradle plugin version ( kapt "com.android.databinding:compiler:$version")

Additionally, I stick to org.jetbrains.kotlin:kotlin-stdlib and don’t use the jre7 version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment