Adam S
07/11/2023, 2:21 PMcom.android.build.gradle.internal.BadPluginException: The 'java' plugin has been applied, but it is not compatible with the Android plugins.
Is there an example of how to add the Kotlin Multiplatform plugin and the Android Library plugin?mbonnin
07/11/2023, 2:32 PMplugins {
id("com.android.library")
id("org.jetbrains.kotlin.multiplatform")
}
ephemient
07/11/2023, 2:36 PMorg.jetbrains.kotlin.multiplatform
you mean? given that the question mentions multiplatformmbonnin
07/11/2023, 2:37 PMephemient
07/11/2023, 2:37 PMwithJava()
Adam S
07/11/2023, 2:38 PMplugins {
id("my.conventions.kotlin-multiplatform-jvm")
id("my.conventions.android-library")
id("my.conventions.publishing")
}
where my.conventions.kotlin-multiplatform-jvm
applies kotlin("multiplatform")
and enables jvm()
, and my.conventions.android-library
applies com.android.library
mbonnin
07/11/2023, 2:39 PMAdam S
07/11/2023, 2:39 PMwithJava()
fixed it, thanks @ephemient