does anyone know the difference between the kotlin...
# android
b
does anyone know the difference between the kotlin-android and kotlin-android-extensions plugins? i see people applying both, but i can't find any official doc reference to kotlin-android anymore
d
I think ‘kotlin-android’ is what you need for Kotlin to work at all in an Android module. Like ‘kotlin.jvm’ or ‘kotlin.multiplatform’, but for Android. ‘kotlin-android-extensions’ does extra stuff like generating synthetic View references and enabling the
@Parcelize
annotation.
👍 2
j
yes. (and actually you should use
org.jetbrains.kotlin.android
not
kotlin-android
)
👍 2
b
so
apply plugin: 'org.jetbrains.kotlin.android'
?
j
yep!
b
thanks!
b
@jw could you please explain why it is so?