轮小空lun_kong
  1. Starting Gradle Daemon...
  2. Gradle Daemon started in 11 s 81 ms

  3. FAILURE: Build failed with an exception.

  4. * What went wrong:
  5. Could not open init generic class cache for initialization script 'C:\Users\32271\AppData\Local\Temp\wrapper_init.gradle' (C:\JAVA\maven_repository\caches\7.1.1\scripts\4lysw6m6kfk0a4a2cnes0dk85).
  6. > BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 61

  7. * Try:
  8. 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.

  9. * Get more help at https://help.gradle.org

  10. BUILD FAILED in 25s
复制代码






lyr0621
建议给以下github链接,否则没有代码根本不知道哪里报错。
同时,file major version 61 这句好像是java版本不对的意思。、不同版本的jdk是有差别的,较老的jdk不认新版本。一般readme里面会说是java几。没说的话,就java8,java11,java17三个都试试

美味的曲奇
尝试使用JDK17进行打包

MC傲云
可以去看看大佬怎么弄的