Hello evryone :slightly_smiling_face: can someone ...
# community-support
k
Hello evryone šŸ™‚ can someone help me ? I am doing a simple Flutter porject with ANdroid Studio and I am having issue to run Gradle... I'm getting this error message below: Launching lib\main.dart on Android SDK built for x86 in debug mode... Running Gradle task 'assembleDebug'... FAILURE: Build failed with an exception. * What went wrong: Could not open settings generic class cache for settings file 'C:\Users\Kendra\StudioProjects\dicee-flutter\android\settings.gradle' (C:\Users\Kendra\.gradle\caches\7.0.2\scripts\9ro1u0k9hdyieqwldgdt37f3r).
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 1s ā”Œā”€ Flutter Fix ────────────────────────────────────────────────────────────────────────────────────┐ │ [!] Your project's Gradle version is incompatible with the Java version that Flutter is using │ │ for Gradle. │ │ │ │ If you recently upgraded Android Studio, consult the migration guide at │ │ https://flutter.dev/to/to/java-gradle-incompatibility. │ │ │ │ Otherwise, to fix this issue, first, check the Java version used by Flutter by running
Copy code
flutter  │
│ doctor --verbose
. │ │ │ │ Then, update the Gradle version specified in │ │ C:\Users\Kendra\StudioProjects\dicee-flutter\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
v
What is unclear?