Android Studio 无法打开设置的设置泛型类缓存

7hiiyaii  于 2023-02-16  发布在  Android
关注(0)|答案(1)|浏览(311)

你好,我得到这个错误在Android studion Windows 10任何解决方案?

FAILURE: Build failed with an exception.

* What went wrong:
Could not open settings generic class cache for settings file 'C:\Users\acer\StudioProjects\untitled2\android\settings.gradle' (C:\Users\acer\.gradle\caches\7.5\scripts\3d075fs9hjp81ny0sgym4v09w).
> 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 919ms
Exception: Gradle task assembleDebug failed with exit code 1
eimct9ow

eimct9ow1#

尝试如下:

  • 转到wrapper目录android〉〉gradle文件夹。
  • 删除***gradle-wrapper. jar***文件
  • 编辑***gradle-wrapper. properties***文件
  • 同步项目
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip or latest

相关问题