I would like to know what I did wrong in my setup....
# multiplatform
j
I would like to know what I did wrong in my setup. My jvm server code using the androidMain not jvmMain and that means I am adding extra code to androidMain. This is my plugins in server/build.gradle.kts:
Copy code
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
    kotlin("jvm")
    id("kotlin-platform-jvm")
    id("war")
    id("application")
    kotlin("plugin.serialization")
    id("kotlinx-serialization")
}
And for shared/build.gradle.kts:
Copy code
plugins {
    kotlin("multiplatform")
    id("kotlinx-serialization")
    id("com.android.library")
    id("org.jetbrains.kotlin.native.cocoapods")
    id("com.codingfeline.buildkonfig")
}

version = "1.0"

kotlin {
    android()
    iosX64()
    iosArm64()
    iosSimulatorArm64()
    jvm {
        compilations.all {
            kotlinOptions {
                jvmTarget = "1.8"
            }
        }
    }
And if you look at the screenshot, the top tab is for jvmMain and returns just a string, the middle is from androidMain and it throws an exception in my server project, which is caught in the third tab. The code is in https://github.com/jblack975/MyOutfitPicker
🧵 1