Build failed with an exception in android studio with flutter

I have a Gradle problem in android studio. I can’t understand what’s going on.

  • What went wrong:

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

  • 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.

Hey i have the same problem do u know how to solve it ??