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

Execution failed for task ':file_saver:compileDebugKotlin'. #101

Open
nilotpalkapri opened this issue Feb 22, 2024 · 0 comments
Open

Execution failed for task ':file_saver:compileDebugKotlin'. #101

nilotpalkapri opened this issue Feb 22, 2024 · 0 comments

Comments

@nilotpalkapri
Copy link

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':file_saver:compileDebugKotlin'.

'compileDebugJavaWithJavac' task (current target is 1.8) and 'compileDebugKotlin' task (current target is 17) jvm target compatibility should be set to the same Java version.
Consider using JVM toolchain: https://kotl.in/gradle/jvm/toolchain

Doing
compileOptions {
targetCompatibility JavaVersion.VERSION_17
sourceCompatibility JavaVersion.VERSION_17
}
in build.gradle solved the problem

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

1 participant