> Task :gradle:compileGroovy FAILED

FAILURE: Build failed with an exception.

* What went wrong:

Execution failed for task ':gradle:compileGroovy'.

> BUG! exception in phase 'semantic analysis' in source unit 'C:\flutter\packages\flutter_tools\gradle\src\main\groovy\flutter.groovy' Unsupported class file major version 64

* 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 10s