gpt4 book ai didi

Android Studio : Could not compile settings file

转载 作者:行者123 更新时间:2023-12-03 08:22:31 25 4
gpt4 key购买 nike

我尝试在重新安装的 Android studio 上打开项目并收到此错误。当尝试创建一个新项目时也会出现此错误。

FAILURE: Build failed with an exception.

* Where:
Settings file 'C:\Users\STES\AndroidStudioProjects\TuBelleza\settings.gradle'

* What went wrong:
Could not compile settings file 'C:\Users\STES\AndroidStudioProjects\TuBelleza\settings.gradle'.
> startup failed:
General error during semantic analysis: Unsupported class file major version 60

java.lang.IllegalArgumentException: Unsupported class file major version 60
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:196)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:177)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:163)
at groovyjarjarasm.asm.ClassReader.<init>(ClassReader.java:284)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
at java.base/java.lang.Thread.run(Thread.java:831)

最佳答案

不支持的类文件主要版本 60 意味着 Java 16 是 not yet supported .
通过编辑文件 gradle.properties 并添加 org.gradle.java.home=...

关于Android Studio : Could not compile settings file,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67462224/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com