Seems to blow up when my multiplatform library inc...
# multiplatform
k
Seems to blow up when my multiplatform library includes
Copy code
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version
and my app does as well. Fails with
Copy code
Plugin request for plugin already on the classpath must not include a version
d
You can't mix plugins {} block and apply plugins, has to all be the same
You can see a lot of working examples on github, it's a bit annoying to set up but everything does work once you do https://github.com/topics/kotlin-multiplatform?o=desc&s=updated
k
Problem most examples I have seen only have a jvm target but I want and android library target so I can bring in android dependencies
d
Remove the version from
org.jetbrains.kotlin.native.cocoapods
.
d
Yeah that's fine just have all 4 of your plugins without versions as apply plugin, you'll need an extra manifest when it complains one is missing but it'll work
h
https://github.com/chRyNaN/resources/blob/master/api/build.gradle is the first one in the list of multiplatform projects that also has an iOS tag, so go for it, looks more or less like what I'm currently having