BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65

Eclipse Message:

The supplied phased action failed with an exception.
(/.gradle/caches/8.1.1/scripts/32mm3cohhklx5d2eisufyd2e).
BUG! exception in phase ‘semantic analysis’ in source unit ‘BuildScript’ Unsupported class file major version 65
Unsupported class file major version 65

I’m running Eclipse 2024-03, gradle 8.7, Java temurin-21, MacOS Intel.
What I noticed is it is trying to read “/caches/8.1.1”. I’m assuming 8.1.1 is supposed to be the gradle version ???

I’ve deleted /.gradle and ran gradle wrapper on my project. the /.gradle was re-created. However, there still is not a /caches/8.1.1 directory.

What am I missing?

Seems I’ve resolved the problem. I deleted the projects from eclipse. From the command line I removed all eclipse project files/directories. “.project”, “.classpath”, “.settings”. And for good measure, I deleted the bin and build directories.

Now importing the gradle projects back into eclipse, I’m no longer seeing this problem.