Error messages (need help)

i keep getting this error does someone know how to fix this?

FAILURE: Build failed with an exception.

  • What went wrong:
    Could not open init generic class cache for initialization script ‘C:\Users\arjan\AppData\Local\Temp\wrapper_init2.gradle’ (C:\Users\arjan.gradle\caches\7.1\scripts\5g8a41gvqrxo32pc5g0mizz1r).

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

  • 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 2s