Can someone help me get some clarity on the difference between these 2 plugins?
'com.android.kotlin.multiplatform.library' and 'com.android.library' plugins cannot be applied in the same project.
Which one should I use? what are the drawbacks of using one or the other?
If I apply the
com.android.library
I need to add
androidTarget()
to the
kotlin
configuration with multiplatform and I keep using the standard
android
configuration.
However if I add the
com.android.kotlin.multiplatform.library
I need to use
androidLibrary { }
instead.
Android Studio generate multiplatform libraries with
com.android.kotlin.multiplatform.library
.
If I recall I went with
com.android.library
because with the other Android Studio wasn’t showing compose previews.
I’d really appreciate if someone could shed some light on this. I couldn’t find any documentation on this. Thank you