image_gallery_saver icon indicating copy to clipboard operation
image_gallery_saver copied to clipboard

Execution failed for task ':image_gallery_saver:compileDebugKotlin'. > Inconsistent JVM-target compatibility detected for tasks 'compileDebugJavaWithJavac' (1.8) and 'compileDebugKotlin' (17).

Open PeOS-China opened this issue 9 months ago • 2 comments

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.

  • Get more help at https://help.gradle.org

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

PeOS-China avatar May 17 '24 08:05 PeOS-China