Hello, when I try to run the software, I encounter the following error:
`FAILURE: Build failed with an exception.
What went wrong:
Could not open settings generic class cache for settings file 'F:\mahdi-barati-repo\Flutter\SocialMedia-App\android\settings.gradle' (C:\Users\WEBFLAX-THREE.gradle\caches\7.1\scripts\el377zxjtiubuolyxhieyiuv6).
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.
BUILD FAILED in 4m 36s
Running Gradle task 'assembleDebug'... 277.3s
┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using for Gradle. │
│ │
│ To fix this issue, first, check the Java version used by Flutter by running flutter doctor --verbose. │
│ │
│ Then, update the Gradle version specified in F:\mahdi-barati-repo\Flutter\SocialMedia-App\android\gradle\wrapper\gradle-wrapper.properties to be compatible with that Java version. See the link below for more information on │
│ compatible Java/Gradle versions: │
│ https://docs.gradle.org/current/userguide/compatibility.html#java │
│ │
│ │
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
`
Please give me the appropriate version of Java and Flutter and Dart that are suitable for this project.
Hello, when I try to run the software, I encounter the following error: `FAILURE: Build failed with an exception.
What went wrong: Could not open settings generic class cache for settings file 'F:\mahdi-barati-repo\Flutter\SocialMedia-App\android\settings.gradle' (C:\Users\WEBFLAX-THREE.gradle\caches\7.1\scripts\el377zxjtiubuolyxhieyiuv6).
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 4m 36s Running Gradle task 'assembleDebug'... 277.3s
┌─ Flutter Fix ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐ │ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using for Gradle. │ │ │ │ To fix this issue, first, check the Java version used by Flutter by running
flutter doctor --verbose
. │ │ │ │ Then, update the Gradle version specified in F:\mahdi-barati-repo\Flutter\SocialMedia-App\android\gradle\wrapper\gradle-wrapper.properties to be compatible with that Java version. See the link below for more information on │ │ compatible Java/Gradle versions: │ │ https://docs.gradle.org/current/userguide/compatibility.html#java │ │ │ │ │ └────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘ ` Please give me the appropriate version of Java and Flutter and Dart that are suitable for this project.