Manuel Lorenzo
12/04/2020, 5:49 PMandroid {
buildFeatures {
compose = true
}
compileOptions {
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_1_8
}
composeOptions {
composeOptions.kotlinCompilerVersion = versionsProperties["version.kotlin"].toString()
kotlinCompilerExtensionVersion = versionsProperties["version.androidx.ui"].toString()
}
}
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check")
useIR = true
}
}
However, I’m still getting the following error message for several classes:
Class 'androidx.compose.ui.Modifier' is compiled by a new Kotlin compiler backend and cannot be loaded by the old compiler
Nat Strangerweather
12/04/2020, 6:29 PMManuel Lorenzo
12/08/2020, 7:45 AM