Hi everyone , i encountered this error while build...
# flutter
s
Hi everyone , i encountered this error while building an app .can anyone suggest me what to do . FAILURE: Build failed with an exception. * What went wrong: Could not open settings generic class cache for settings file '/Users/sammy/Desktop/all flutter projects/mi_card_flutter/android/settings.gradle' (/Users/sammy/.gradle/caches/7.0.2/scripts/1445wdyck9xmnqxfk9atcnkpf). > 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. * Get more help at https://help.gradle.org BUILD FAILED in 3s ┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐ │ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using │ │ for Gradle. │ │ │ │ To fix this issue, consult the migration guide at docs.flutter.dev/go/android-java-gradle-error. │ └──────────────────────────────────────────────────────────────────────────────────────────────────┘ Exception: Gradle task assembleDebug failed with exit code 1