Compile Error : JVM target 11 into bytecode that is being built with JVM target 1.8
logicgupta opened this issue · comments
Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8
Getting Above error in compiling below line of code
val viewModel = getViewModel(key = "HomeScreen", factory = viewModelFactory { NewsViewModel() })
@Alex009 PLEASE HAVE A LOOK
I also ran into this issue when running my Compose Multiplatform Android app.
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
This works when building for Android, but not when building for desktop. I tried changing the target everywhere I can, and still get this error when building for desktop.