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

"Jvm target compatibility should be set to the same Java version" build error #23

Closed
sergejsha opened this issue Jul 25, 2023 · 1 comment

Comments

@sergejsha
Copy link

After cloning the project, setting current java to version 18 and building it, I constantly get the error below. Any ideas what can cause it or what could be a solution for it?

* What went wrong:
Execution failed for task ':shared:compileDebugKotlinAndroid'.
> 'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlinAndroid' task (current target is 18) jvm target compatibility should be set to the same Java version.
  Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain
@dbaroncelli
Copy link
Owner

Many thanks! I have just pushed un update.
I have specified Java 18 in the shared gradle file.
The desugaring is enabled so that also older Android devices can run the latest Java language feature.

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

2 participants