https://kotlinlang.org logo
h

hmole

10/09/2018, 9:18 AM
How do I use
kapt
on android(
main
) sources of multiplatform project? I can't apply
kotlin-android
, because it says
kotlin
extensions is already added, but without it there is no
kapt
configuration.
g

gildor

10/09/2018, 9:22 AM
Did you try to apply kotlin-kapt? Because kapt is not Android specific
h

hmole

10/09/2018, 9:22 AM
For anyone who's facing same issue: just apply android stuff after
kotlin
extension block, but
apply plugin: 'com.android.library'
must come before
apply plugin: 'kotlin-multiplatform'
.
1
g

gildor

10/09/2018, 9:22 AM
I don’t know does it work or not with mpp project, just in case
2 Views