- Статус
- Оффлайн
- Регистрация
- 24 Ноя 2024
- Сообщения
- 671
- Реакции
- 11
Код:
23:47:15: Executing ':Start.main()'…
> Task :compileJava UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
Connected to the target VM, address: 'localhost:57467', transport: 'socket'
Disconnected from the target VM, address: 'localhost:57467', transport: 'socket'
> Task :Start.main() FAILED
3 actionable tasks: 1 executed, 2 up-to-date
Error: LinkageError occurred while loading main class Start
java.lang.UnsupportedClassVersionError: Start has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':Start.main()'.
> Process 'command 'C:/Users/bnn31/.jdks/corretto-11.0.26/bin/java.exe'' finished with non-zero exit value 1
* 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 819ms
23:47:16: Execution finished ':Start.main()'.
Помогите исправить. В ProjectSDK стоит 17 джава, в LanguageLevel тоже 17. У меня обычный градл проект с 1.16.5 mcp-шкой