I'm having trouble setting the jvm target for an a...
# multiplatform
b
I'm having trouble setting the jvm target for an android library (using the
com.android.library
plugin) in my mpp project:
Copy code
kotlin {
    targets {
        targetFromPreset(presets.android, 'android') {
            compilations.main {
                kotlinOptions {
                    jvmTarget = "1.8"
                }
            }
        }
    }
}
Saying it can't find the
main
method for compilations. is there somewhere else I should be setting the JVM target?
figured it out:
Copy code
android {
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}