korlibs / korlibs/korge

Unable to get started with "Cannot inline bytecode built with JVM target 11 into bytecode that is being built with JVM target 1.8" error

Open
#2,094 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
3k
Forks
148
Avg merge
13h 44m
Merged PRs (30d)
1

Description

### Discussed in https://github.com/korlibs/korge/discussions/2089

Originally posted by **AShynkevich** December 24, 2023
Hello,
I tried to create "hello world" application on Korge engine.

OS: MacOS Sonoma 14.1.1
IDE: IntelliJ IDEA Ultimate
Java SDK: 17

I go over steps:
1. I create "Hello world" (all steps by default)
image

2. Waiting for all dependencies are downloaded and indexed
3. Once all necessary things were indexed - code looks good.
4. Then close the project and open it again an see the problem below:
but have the following trouble in the code within IDE(see the picture):
image
5. The IDE writes "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 error stacks me to proceed any progress with the Engine.

Could you assist me to resolve this?

P.S. The related topic: https://github.com/korlibs/korge/issues/2028 doesn't help anyhow

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with discussion 2089 and the related issue 2028, then reproduce the default Hello World project on macOS Sonoma with IntelliJ IDEA and Java 17. Trace the project’s JVM target configuration and verify that reopening the project no longer reports the JVM target 11 versus 1.8 error and that the application can proceed.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.