I am practicing Scala and try to run external project, which includes Spark and Gradle. Unfortunately, I am getting this error all the time:

I would be grateful for any advice that can help with fixing this issue. I am using Scala 2.13.12.
I've tried to change the Java and Scala versions, modified dependencies in build.gradle, checked if environmental variables are included.