question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to compile JVM app with the new libraries 1.x.x

See original GitHub issue

Hello!

It’s great to see the new updates in PreCompose - thank you! 🙂

I’m trying to test the new updates, but when I try to run the desktop app I’m getting:

Error: LinkageError occurred while loading main class MainKt
        java.lang.UnsupportedClassVersionError: MainKt has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0

I’m able to replicate this error in the sample project, by using the remote version of PreCompose, instead of the local one.

Briefly, on sample/desktop/build.gradle.kts file, I’ve changed the implementation to:

implementation("moe.tlaster:precompose:1.1.4")

I also tried the different versions that you’ve released starting with 1.0.0.

I tested different Java versions, from older to newer and the only thing that changed was the 55.0 number, which was continuously updated to the one that I was using.

Any idea, on what might be wrong?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
Tlastercommented, Jun 14, 2022

I also face the same problem when using IntelliJ with JDK 17, it errors everywhere, but compile seems to be fine. It seems that JDK 17 is just too early to use, back to JDK 11 is better.

0reactions
Tlastercommented, Sep 8, 2022

What would i need to do to make my app work while we’re waiting on compose-jb?

The latest version should work without any problem. Closing as stale

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Studio Error "Android Gradle plugin requires Java 11 ...
The solution is to install the Java 11 or higher. The second solution is to make a symlink in the folder ~/Library/Java/JavaVirtualMachines/ to ......
Read more >
rJava fails to load · Issue #2254 - GitHub
When I run. > library(rJava). Unable to find any JVMs matching version "(null)". No Java runtime present, try --request to install.
Read more >
Known issues with Android Studio and Android Gradle Plugin
This error occurs on Linux-based platforms when starting the native debugger. It indicates that one of the libraries required by the native debugger...
Read more >
Building Java & JVM projects - Gradle User Manual
Gradle uses a convention-over-configuration approach to building JVM-based projects that borrows several conventions from Apache Maven.
Read more >
Transition from Java 8 to Java 11 - Azure - Microsoft Learn
application to run on Java 11 more quickly by focusing on the minimum that needs to be done. Most of the problems you...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found