Getting an IR Lowering error with this root cause `Caused by: java.lang.IllegalStateException: could...
s
Getting an IR Lowering error with this root cause
Caused by: java.lang.IllegalStateException: couldn't find inline method Landroidx/lifecycle/viewmodel/compose/ViewModelKt;
. Any suggestions on how to fix this?
z
Any chance you can narrow down what code is triggering it and post here?
s
I think it has something to do with not including the
kotlinOptions
in my Android config. Wasn’t able to initially specify it because the DSL wasn’t available through KMM.
a
Had the same issue. To fix it, make sure the
org.jetbrains.kotlin.plugin.compose
plugin is applied in your Gradle module’s
build.gradle[.kts]
and this
build.gradle[.kts]
contains:
Copy code
android {
	// ...
	buildFeatures {
		// ...
		compose true
	}
}