Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compile Error : JVM target 11 into bytecode that is being built with JVM target 1.8 #266

Open
logicgupta opened this issue Feb 8, 2024 · 4 comments

Comments

@logicgupta
Copy link

logicgupta commented Feb 8, 2024

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() })

@logicgupta logicgupta changed the title Compile Error Compile Error JVM target 11 into bytecode that is being built with JVM target 1.8 Feb 8, 2024
@logicgupta logicgupta changed the title Compile Error JVM target 11 into bytecode that is being built with JVM target 1.8 Compile Error : JVM target 11 into bytecode that is being built with JVM target 1.8 Feb 8, 2024
@logicgupta
Copy link
Author

@Alex009 PLEASE HAVE A LOOK

@ernestkamara
Copy link

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

@ernestkamara
Copy link

Updating the target to 11 worked for me.

Screenshot 2024-03-03 at 20 59 48

@Fifteen15Studios
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants