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 ':image_gallery_saver:compileDebugKotlin'. > Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17). #300

Open
PeOS-China opened this issue May 17, 2024 · 2 comments

Comments

@PeOS-China
Copy link

Flutter升级到最新之后,Android的编译出现了以下异常:

`FAILURE: Build failed with an exception.

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

Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17).

Consider using JVM Toolchain: https://kotl.in/gradle/jvm/toolchain
Learn more about JVM-target validation: https://kotl.in/gradle/jvm/target-validation

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 52s
Error: Gradle task assembleDebug failed with exit code 1`

@casualcoder404
Copy link

I too am facing this issue.

Any updates or soltion?

@famasf1
Copy link

famasf1 commented May 21, 2024

See #295

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