Gradle incompatible version !!

Project Settings

I keep getting this error :

Launching lib\main.dart on sdk gphone64 x86 64 in debug mode...

Upgrading build.gradle

Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* What went wrong:

Could not open cp_settings generic class cache for settings file 'C:\Users\i-gha\AppData\Roaming\FlutterFlow\flutterflow\game\android\settings.gradle' (C:\Users\i-gha\.gradle\caches\7.5\scripts\dxulbnq6fu8clp0rlokxaug5s).

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

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

Running Gradle task 'assembleDebug'... 8.3s

β”Œβ”€ 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 β”‚

β”‚ docs.flutter.dev/go/android-java-gradle-error. β”‚

β”‚ β”‚

β”‚ Otherwise, to fix this issue, first, check the Java version used by Flutter by running `flutter β”‚

β”‚ doctor --verbose`. β”‚

β”‚ β”‚

β”‚ Then, update the Gradle version specified in β”‚

β”‚ C:\Users\i-gha\AppData\Roaming\FlutterFlow\flutterflow\game\android\grad β”‚

β”‚ le\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 β”‚

β”‚ β”‚

β”‚ β”‚

β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Error: Gradle task assembleDebug failed with exit code 1

What have you tried so far?

Tried changing java version on my computer but nothing new.

Did you check FlutterFlow's Documentation for this topic?
No
7
7 replies