英文:
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
英文:
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 64java.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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论