失败:构建失败,出现异常。 * 其中:构建文件 'F:\Developed App\untitled1\android\build.gradle' 行:24

FAILURE: Build failed with an exception. * Where: Build file 'F:\Developed App\untitled1\android\build.gradle' line: 24

F:\Developed App\untitled1\android>gradlew signingReport

失败:构建失败,出现异常。

A problem occurred configuring project ':app'. Could not open proj generic class cache for build file 'F:\Developed App\untitled1\android\app\build.gradle' (C:\Users\Raihan.gradle\caches.7\scripts\b8f tacjwav9hf6p50aw09t36z). > BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 60

1 秒内构建失败

F:\已开发 App\untitled1\android>

  1. 转到 C:\Users\Raihan.gradle\caches\ 并尝试删除此 caches 文件夹中的所有内容。

  2. 然后移除untitled1/.gradle/caches/

  3. 如果您使用的是 Android Studio,请转到文件 -> 使缓存无效并重新启动

希望您的问题得到解决