即使我删除并再次设置,也没有任何变化。error失败:生成失败,出现异常。
* What went wrong:
Could not open settings generic class cache for settings file 'C:\Users\Ozgur\Documents\flutterprojects\android\settings.gradle' (C:\Users\Ozgur\.gradle\caches\7.4\scripts\ea4ydi90mwjg9g63m7r6nimmx).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 63
* 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 1s
Exception: Gradle task assembleDebug failed with exit code 1
我删除程序,安装程序再次添加JAVA_HOME路径并重新安装Java JDK-19,但未修复
2条答案
按热度按时间pgpifvop1#
它看起来像gradle缓存问题,删除该高速缓存并通过android studio重新安装它,我将根据您指定的版本自动安装它。
ej83mcc02#
我最近修复了由于Gradle版本和JDK版本不支持而导致的错误。有两种解决方案,其中一种是完全删除JDK 19并安装JDK 17。或者编辑www.example.com中的链接gradle-wrapper.propertiesgradle-7.4-all.zip