FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':gradle:compileGroovy'.
> BUG! exception in phase 'semantic analysis' in source unit 'C:\EigeneProgramme\flutter\API\flutter\packages\flutter_tools\gradle\src\main\groovy\app_plugin_loader.groovy' Unsupported class file major version 67
* 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 12s
┌─ Flutter Fix ───────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using │
│ for Gradle. │
│ │
│ If you recently upgraded Android Studio, consult the migration guide at │
│ https://flutter.dev/to/java-gradle-incompatibility. │
│ │
│ Otherwise, to fix this issue, first, check the Java version used by Flutter by running `flutter │
│ doctor --verbose`. │
│ │
│ Then, update the Gradle version specified in │
│ ...\android\gradle\wrapper\gradle-wrapper.properties to be │
│ compatible with that Java version. See the link below for more information on compatible │
│ Java/Gradle versions: │
│ https://docs.gradle.org/current/userguide/compatibility.html#java │
│ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────┘
Error: Gradle task assembleDebug failed with exit code 1
这是终止语句。发出“flutter doctor --verbose”状态:
[√] Flutter(通道稳定,3.27.1,在 Microsoft Windows [版本 10.0.26100.2605] 上,语言环境 de-DE)• Flutter 版本 3.27.1,通道稳定,位于 C:\EigeneProgramme lutter\API lutter• 上游存储库https://github.com/flutter/flutter.git%E2%80%A2 框架修订17025dd882(3 周前),2024-12-17 03:23:09 +0900• 引擎修订版 cb4b5fff73• Dart 版本 3.6.0• DevTools 版本 2.40.2
[√] Windows 版本(安装的 Windows 版本为版本 10 或更高版本)[√] Android 工具链 - 为 Android 设备开发(Android SDK 版本 35.0.0)• Android SDK 位于 C:\Android-SDK• 平台 android-35,构建工具 35.0.0• ANDROID_SDK_ROOT = C:\Android-SDK • Java 二进制文件位于:C:\Program Files\Java\jdk-23 in\java• Java 版本 Java(TM) SE 运行时环境(构建23.0.1+11-39)• 接受所有 Android 许可证。
[√] Chrome - 为网络开发• Chrome 位于 C:\Program Files (x86)\Google\Chrome\Applicatio