Abdullah Musa
11/21/2023, 4:43 PMA problem occurred configuring project ':composeApp'.
> Failed to notify project evaluation listener.
> The 'java' plugin has been applied, but it is not compatible with the Android plugins.
> No element of the collection was transformed to a non-null value.
More in🧵Abdullah Musa
11/21/2023, 4:46 PMAbdullah Musa
11/21/2023, 4:47 PMplugins { ... }
kotlin {
androidTarget { ... }
jvm("desktop")
sourceSets {
val commonMain by getting {
dependencies { ... }
}
val androidMain by getting {
dependencies { ... }
}
val desktopMain by getting {
dependencies { ... }
}
}
}
android { ... }
compose.desktop {
application {
mainClass = "MainKt"
nativeDistributions {
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
...
}
}
}
CLOVIS
11/23/2023, 10:26 AMyour_repository/
shared/ ← your existing project
src/commonMain/
src/androidMain/
src/desktopMain/
build.gradle.kts
android/ ← new project with only Android stuff
src/androidMain/
build.gradle.kts
desktop/ ← new project with only JavaFX stuff
src/desktopMain/
build.gradle.kts
This way, you can apply the Android plugin in :android
and the JavaFX plugin in :desktop
, and they won't fightAbdullah Musa
11/23/2023, 6:08 PMCLOVIS
11/23/2023, 10:22 PM