After creating the project, when I click on the run-button in order to run the app the following error is shown on the console.

Running Gradle task 'assembleDebug'...  FAILURE: Build failed with an exception.  

* What went wrong: Could not open settings generic class cache for settings file 'D:\Flutter Projects\project_prototype\android\settings.gradle' (C:\Users\STAR LAPTOP\.gradle\caches\6.7\scripts\5sl7zkbsy2ouu7w1tbc16rgy8).

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

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