adeo-opensource / kviewmodel--mpp

Library to sharing view model
Apache License 2.0
48 stars 4 forks source link

Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. #8

Closed Programistich closed 2 years ago

Programistich commented 2 years ago

If use observeAsState() and StoredViewModel() i have error when build android module Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8. Please specify proper '-jvm-target' option

Programistich commented 2 years ago
android {
    compileSdk = 32
    sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
    defaultConfig {
        minSdk = 21
        targetSdk = 32
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_11
        targetCompatibility = JavaVersion.VERSION_11
    }
}