我收到这个错误:
FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings remapped class cache for 1a8j0dwq37525yzi9alfmzw3 (C:\Users\Username\.gradle\caches\5.4.1\scripts-remapped\settings_7z9efzwj1mz1b0w35o6u5p4ep\1a8j0dwq37525yzi9alfmzw3\settingsdcd040730888da95d185715568c9cc57).
> Could not open settings generic class cache for settings file 'PATH\android\settings.gradle' (C:\Users\Username\.gradle\caches\5.4.1\scripts\1a8j0dwq37525yzi9alfmzw3\settings\settingsdcd040730888da95d185715568c9cc57).
> BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 57
昨天我尝试添加谷歌登录包,收到了类似的错误。然后我从我的Github存储库中提取了一个工作版本,现在我得到了这个错误。已经清理了Gradle,重新安装了Java,删除了缓存,使用Android Studio“重启并删除”…有人知道吗?
提前谢谢
有同样的问题。我是这样解决的。
转到<代码>Android
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2-all.zip
之后
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip