What went wrong:
Could not open settings generic class cache for settings file 'D:\flutter-whatsapp-clone-master\android\settings.gradle' (C:\Users\18ans.gradle\caches\6.7.1\scripts\1s73qcb50lg0rbrzpvq7gi0ih).
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.
. 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-whatsapp-clone-master\android\settings.gradle' (C:\Users\18ans.gradle\caches\6.7.1\scripts\1s73qcb50lg0rbrzpvq7gi0ih).
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 750ms Exception: Gradle task assembleDebug failed with exit code 1