Just use 8.8 Gradle version with jdk 22. Make sure in the Program file>java folder there is no 23 and 22 sdk folder at the same time if yes than remove the sdk 23 folder and restart the computer