Your project's Gradle version is incompatible with the Java version that Flutter is using for Gradle

preview_player
Показать описание
Running Gradle task 'assembleDebug'...

FAILURE: Build failed with an exception.

* Where:

* What went wrong:
A problem occurred evaluating root project #'android'.
A problem occurred configuring project ':app'.
BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 64

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

┌─ #FlutterFix ─────────────────────────────────────────────────────────────────────────────────┐
│ [!] 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 │
│ compatible with that Java version. See the link below for more information on compatible │
│ Java/Gradle versions: │
│ │
│ │
└───────────────────────────────────────────────────────────────────────────────────────────────┘
Exception: Gradle task assembleDebug failed with exit code 1
#YourProject'sGradleVersionIsIncompatibleWithTheJavaVersionThatFlutterIsUsingForGradle
#flutterbuildgradile #
Рекомендации по теме
Комментарии
Автор

this works, usually flutter don't support most recent jdk . you will have to choose previous jdk . Thank you for saving a lot of time!

squcspo
Автор

This solved my problem. Thank you so much

ahmetarslan
Автор

i still error:)
Is 7.5 there just left there?

ramadwi
Автор

AHH THANKYOU SIR, I'M DONEE.. ✨✨

ramadwi
Автор

I have 2 Flutter projects
In 1st on ei can create apk and it is run well but problem arrive in 2nd project where this error show me sonif i change gradle version then it affects on my 1st project or not?

cococartoon
Автор

what should i do if supporting version is N/A

AbdullohAnvarov-nhbf
Автор

TYSM DEAR LEGEND 🫡❤, I WAS SEARCHING ALOT FOR THIS ERROR BUT FINALLY YOUR VIDEO SAVE MY LIFE I'M AO THANKFUL, KEEP COOKING AND NEVER GIVING UP ON LIFE MY FRIEND 🫂🎉♥️

Last_Samurai