【发布时间】:2020-08-03 04:13:12
【问题描述】:
我收到了这个错误:
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
昨天我尝试添加 Google 登录包并收到类似的错误。然后我从我的 Github 存储库中提取了一个工作版本,现在我收到了这个错误。已经清理了 Gradle,重新安装了 Java,删除了缓存,使用 Android Studio “重新启动并删除”... 有人知道吗?
提前致谢
【问题讨论】:
-
对于 Flutter(可能对其他框架有帮助)我已在 this 帖子上发布了答案。
标签: react-native gradle build.gradle