'Could not open init generic class cache for initialization script

Could not open init generic class cache for initialization script 'C:\Users\admin\AppData\Local\Temp\wrapper_init10.gradle' (C:\Users\admin.gradle\caches\7.1\scripts\bq4xfr0k8ws5ks8fmz271bhrx).

BUG! exception in phase 'semantic analysis' in source unit 'BuildScript' Unsupported class file major version 61

JDK version: 17.0.1 JVM Version: 1.8



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source