Hey tried to make a compose library for desktop and android, works theoretical but if I try to add this to the plugins:
Copy code
kotlin("plugin.serialization") version Versions.KOTLIN
I get this error when reloading:
The 'java' plugin has been applied, but it is not compatible with the Android plugins.
✅ 1
Jan
05/21/2022, 12:10 PM
when I remove the serialization plugin it works fine
Jan
05/21/2022, 12:16 PM
oh nvm a subproject had a withJava() in their jvm target
b
Big Chungus
05/21/2022, 4:48 PM
App module cannot have both, jvm and android targets. It's not compose specific limitation.
Usually you put all your shared mpp code in internal "library" module and then have separate modules per application that depend on said "library" module