Unsupported class file major version 64.

huangapple go评论111阅读模式
英文:

Unsupported class file major version 64

问题

FAILURE: 构建失败,出现异常。

  • 在哪里:
    构建文件 'D:\D\FitCoachApp\fit_coach_app\android\build.gradle'。

  • 出了什么问题:
    无法编译构建文件 'D:\D\FitCoachApp\fit_coach_app\android\build.gradle'。

启动失败:
在转换过程中发生一般错误:不支持的类文件主版本号 64

java.lang.IllegalArgumentException: 不支持的类文件主版本号 64

Unsupported class file major version 64.

英文:

FAILURE: Build failed with an exception.

  • Where:
    Build file 'D:\D\FitCoachApp\fit_coach_app\android\build.gradle'

  • What went wrong:
    Could not compile build file 'D:\D\FitCoachApp\fit_coach_app\android\build.gradle'.
    > startup failed:
    General error during conversion: Unsupported class file major version 64

    java.lang.IllegalArgumentException: Unsupported class file major version 64

[enter image description here](https://i.stack.imgur.com/WKYeM.png)

答案1

得分: 7

在我的情况下,我可以通过更改Gradle JVM 来解决这个问题。
设置... -> 构建、执行、部署 -> 构建工具 -> Gradle
然后将Gradle JVM 降级。在我的情况下,我不得不从20降到17。
之后,转到build.gradle,然后点击同步按钮。

英文:

In my case I could sorted it by changing the gradle JVM.
Settings... -> Build, Execution, Deployment -> Build Tools -> Gradle
then downgrade the Gradle JVM. In my case I had to change from 20 to 17.
After go to build.gradle and click on syncup button

huangapple
  • 本文由 发表于 2023年4月17日 20:45:29
  • 转载请务必保留本文链接:https://go.coder-hub.com/76035302.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定