https://kotlinlang.org logo
Title
a

Archie

03/11/2021, 10:29 AM
Hi Guys, I tried converting one of our project's Module which also uses
Jetpack Compose
. I tried to convert the module to a
Multiplatform Module
and move all android related code to
androidMain
but I when building the app
Compose
throws error. Also adding
kotlin("android")
in the
Kotlin Multiplatform
module throw and error
org.gradle.api.GradleException: Please initialize at least one Kotlin target
. Is there a way to work around this? Or is it better to create a seperate KMM module for the module and a serparate Android specific module for Android UI? Like:
:feature1
 :feature1KMM
?? Thanks in advance.
Apparently this is a known issue: https://youtrack.jetbrains.com/issue/KT-38694