image_gallery_saver
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).
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`